if error while uploading, report error