FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Replace System.err with Messages.showWarning by Stefterv · Pull Request #1358 · processing/processing4 · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 3 additions & 3 deletions app/src/processing/app/Base.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ private Editor openSketchBundle(String path) {
File destFolder = File.createTempFile("zip", "tmp", untitledFolder);
if (!destFolder.delete() || !destFolder.mkdirs()) {
// Hard to imagine why this would happen, but...
System.err.println("Could not create temporary folder " + destFolder);
Messages.showWarning("Could not create temporary folder " + destFolder);
return null;
}
Util.unzip(zipFile, destFolder);
Expand All @@ -1225,11 +1225,11 @@ private Editor openSketchBundle(String path) {
return handleOpenUntitled(sketchFile.getAbsolutePath());
}
} else {
System.err.println("Expecting one folder inside " +
Messages.showWarning("Expecting one folder inside " +
SKETCH_BUNDLE_EXT + " file, found " + fileList.length + ".");
}
} else {
System.err.println("Could not read " + destFolder);
Messages.showWarning("Could not read " + destFolder);
}
} catch (IOException e) {
e.printStackTrace();
Expand Down

Back | FazBrowse Home | New Git URL