[darcs-devel] [patch1791] fix several uses of error where it shoul... (and 7 more)

Ganesh Sittampalam bugs at darcs.net
Mon Jun 3 05:53:13 UTC 2019


Ganesh Sittampalam <ganesh at earth.li> added the comment:

>  * replace errorDoc, assertDoc, bug, and impossible with direct error calls

Fine

>  That is, unless the callstack actually contains
>  useful information, which apparently requires profiling to be enabled. So
>  this is useless to us in practice because who uses a special
>  profiling-enabled Darcs in their daily work?

For what it's worth, putting HasCallStack constraints on functions
nowadays seems to work fairly reliably in all kinds of builds. But that
would require us to go manually through our code to find all the places
it would helpfully improve the error reports, so still isn't that useful.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1791>
__________________________________


More information about the darcs-devel mailing list