slightly improved the way that errors are handled by passing back hr from some function calls.
Attach a file by drag & drop or click to upload