Support for errors during upload

Prints out known errors, or generic case if unknown error.
Merge pull request #19 from jbzdarkid/patch-1

Support for errors during upload