Merge pull request #4268 from Akarshit/bugfix-sameErrorMessage

Changed the error message in JSON functions
This commit is contained in:
Ben Fry
2016-08-06 14:39:21 -04:00
committed by GitHub
+4 -1
View File
@@ -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);