Output more useful upload error messages when possible