Improve error output for upload application

The error output when there is an error uploading a measurement now
includes more information.