Catch and return the proper error
Merge pull request #36 from Rise-Vision/fix/upload-error

Catch and return the proper error