Skip to content

Commit 84ebc68

Browse files
committed
Handle case with empty error message
1 parent 63de1cc commit 84ebc68

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/processing/app/Sketch.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,11 @@ private boolean upload(String buildPath, String suggestedClassName, boolean usin
12001200
} while (uploader.requiresAuthorization() && !success);
12011201

12021202
if (!success) {
1203-
editor.statusError(uploader.getFailureMessage());
1203+
String errorMessage = uploader.getFailureMessage();
1204+
if (errorMessage.equals("")) {
1205+
errorMessage = tr("An error occurred while uploading the sketch");
1206+
}
1207+
editor.statusError(errorMessage);
12041208
}
12051209

12061210
return success;

0 commit comments

Comments
 (0)