Fixes to make erorrs more visible.

This includes adding missing 'message' to exceptions and checking the status return value of the upload method.