fix overly generic error handling
Merge pull request #437 from dimagi/upload-error-bubble-up

fix overly generic error handling