[racket] What's the idomatic way to handle system call errors?
I'm using racket/system to make some calls to other processes, which upon
failure write to standard error. What's the proper way to handle this? I've
been using with-output-to-string to get the output, but I don't know how I
can turn an error response from the external system command into something
in Racket I can work with. Is there some idiomatic with-error-as-exception
form or something similar that says "if this thunk writes to standard
error, throw an exception with the output in the message"?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20150313/e653d943/attachment.html>