babashka / babashka.curl

A This library is mostly replaced by https://github.com/babashka/http-client
Eclipse Public License 1.0
121 stars 9 forks source link

Capture standard error from curl shell command #18

Closed jaydeesimon closed 4 years ago

jaydeesimon commented 4 years ago

If there is a nonzero exit status code from the curl shell command, there is an error message written to standard error. This pull request captures the error message, if one exists, and adds a key for it in the resulting response object.

borkdude commented 4 years ago

@jaydeesimon I made a couple of changes in https://github.com/borkdude/babashka.curl/pull/18/commits/57ffee2cb89c2e50a98abd377734409fcaace82d.