[darcs-devel] Better error reporting for exec_ and friends

Tommy Pettersson ptp at lysator.liu.se
Sat Oct 7 03:07:45 PDT 2006


> Sat Oct  7 00:26:30 CEST 2006  Magnus Jonsson <magnus at smartelectronix.com>
>   * Added rigorous error checking in exec
>   All lowlevel C return values are checked and turned into
>   exceptions if they are error codes. In darcs main
>   ExecExceptions are caught and turned into error messages
>   to help the user.

I've reviewed this patch. It indeed looks rigorous. :-) I can
understand what it does and I didn't spot any obvious bugs. It
looks a bit c-ish, which is probably why I understand what it
does. ;-) I have no idea of how well this is implemented
haskell-wise (if there is a one-liner in haskell that does the
same thing, probably not), so I'll leave that to other to
review, if anyone feels like it.


-- 
Tommy Pettersson <ptp at lysator.liu.se>




More information about the darcs-devel mailing list