mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #4268 from Akarshit/bugfix-sameErrorMessage
Changed the error message in JSON functions
This commit is contained in:
@@ -6532,7 +6532,10 @@ public class PApplet implements PConstants {
|
||||
public BufferedReader createReader(String filename) {
|
||||
InputStream is = createInput(filename);
|
||||
if (is == null) {
|
||||
System.err.println(filename + " does not exist or could not be read");
|
||||
System.err.println("The file \"" + filename + "\" " +
|
||||
"is missing or inaccessible, make sure " +
|
||||
"the URL is valid or that the file has been " +
|
||||
"added to your sketch and is readable.");
|
||||
return null;
|
||||
}
|
||||
return createReader(is);
|
||||
|
||||
Reference in New Issue
Block a user