callProcess exception undocumented
The docs say that callProcess throws an exception when the process returns non-zero. It is not documented what type of exception this is and therefore this API is pretty much useless. Please consider documenting the exception type or adding a new API that returns the status code instead.
A PR for a doc improvement would definitely be appreciated.
On Wed, Apr 20, 2016 at 10:26 PM, rightfold [email protected] wrote:
The docs say that callProcess throws an exception when the process returns non-zero. It is not documented what type of exception this is and therefore this API is pretty much useless. Please consider documenting the exception type or adding a new API that returns the status code instead.
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/haskell/process/issues/60
Similar problems exist with most other functions exported by this module.
@snoyberg I'll see what I can do :) but it won't be today, probably somewhere this weekend
Same. “an Exception is thrown” is hardly very helpful documentation.
I’d create a PR if I could find the origin of OtherError.
It's generated by processFailedException, which is used in a few functions in System.Process.
Yes, that is pretty clear with a search, but there is no definition of OtherError anywhere, and Hoogle/Hayoo can’t find any as well.