From 430510171bf0e4bc06fdd8e6154a69ee7508cc28 Mon Sep 17 00:00:00 2001 From: Akarshit Wal Date: Wed, 3 Feb 2016 22:06:20 +0530 Subject: [PATCH] Changed the error message in JSON functions --- core/src/processing/core/PApplet.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 88ef59d16..1ca5e91cb 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -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);