better error reporting on failed uploads