drewr / postal

Clojure email support
MIT License
586 stars 85 forks source link

Expose Process.getErrorStream() content from postal.sendmail/sendmail-send #104

Open sorsasampo opened 5 years ago

sorsasampo commented 5 years ago

postal.sendmail/errors contains only a subset of errors that can happen.

Please expose Process.getErrorStream() content from postal.sendmail/sendmail-send, as this can seriously help in debugging exit values such as 1.

It may be enough to just replace:

(error (.exitValue p))

with:

(assoc (error (.exitValue p))
  :stderr (slurp (.getErrorStream p)))