Changed the error message in JSON functions

This commit is contained in:
Akarshit Wal
2016-02-03 22:06:20 +05:30
parent f34b6e41cc
commit 430510171b
+4 -1
View File
@@ -6509,7 +6509,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);