fix error handling when directly uploading
Merge branch 'master' of github.com:jaepanda/olapic-xml-magic