Detail error message if upload failed.

Fixes #23