Skip to content

Commit b1eb295

Browse files
committed
Replace System.err with Messages.showWarning
Updated error reporting in Base.java to use Messages.showWarning instead of System.err for user-facing warnings when handling temporary folder creation and reading.
1 parent 201cab6 commit b1eb295

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/processing/app/Base.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ private Editor openSketchBundle(String path) {
12131213
File destFolder = File.createTempFile("zip", "tmp", untitledFolder);
12141214
if (!destFolder.delete() || !destFolder.mkdirs()) {
12151215
// Hard to imagine why this would happen, but...
1216-
System.err.println("Could not create temporary folder " + destFolder);
1216+
Messages.showWarning("Could not create temporary folder " + destFolder);
12171217
return null;
12181218
}
12191219
Util.unzip(zipFile, destFolder);
@@ -1225,11 +1225,11 @@ private Editor openSketchBundle(String path) {
12251225
return handleOpenUntitled(sketchFile.getAbsolutePath());
12261226
}
12271227
} else {
1228-
System.err.println("Expecting one folder inside " +
1228+
Messages.showWarning("Expecting one folder inside " +
12291229
SKETCH_BUNDLE_EXT + " file, found " + fileList.length + ".");
12301230
}
12311231
} else {
1232-
System.err.println("Could not read " + destFolder);
1232+
Messages.showWarning("Could not read " + destFolder);
12331233
}
12341234
} catch (IOException e) {
12351235
e.printStackTrace();

0 commit comments

Comments
 (0)