We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2647ce3 commit b5bfe08Copy full SHA for b5bfe08
app/src/processing/app/Editor.java
@@ -2036,9 +2036,15 @@ public void run() {
2036
statusNotice(tr("Done uploading."));
2037
}
2038
} catch (SerialNotFoundException e) {
2039
- if (portMenu.getItemCount() == 0) statusError(e);
2040
- else if (serialPrompt()) run();
2041
- else statusNotice(tr("Upload canceled."));
+ if (portMenu.getItemCount() == 0) {
+ statusError(tr("Serial port not selected."));
+ } else {
2042
+ if (serialPrompt()) {
2043
+ run();
2044
2045
+ statusNotice(tr("Upload canceled."));
2046
+ }
2047
2048
} catch (PreferencesMapException e) {
2049
statusError(I18n.format(
2050
tr("Error while uploading: missing '{0}' configuration parameter"),
0 commit comments