lib/json: improve the human readable version of JsonParseError
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 29 Jun 2015 01:31:26 +0000 (21:31 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 29 Jun 2015 02:47:05 +0000 (22:47 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/json/error.nit

index dab1689..85e6154 100644 (file)
@@ -23,7 +23,7 @@ class JsonParseError
        redef fun to_s do
                var p = position
                if p isa Position then
-                       return "[{p}] {super}"
+                       return "Error Parsing JSON: [{p}] {super}"
                else
                        return super
                end