Skip to content

Commit

Permalink
fix for missing file name in invalid json syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed Nov 28, 2018
1 parent 0e6bed9 commit a426846
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/lib/deref.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ private const string INCLUDES_DIR = "includes";

private const string SCHEMA_FILTER = "*.json";

private const string ERR_JSON_PARSE = `Failed to parse JSON file contents.
Schema File: %s`;

class Dereferencer {

private Schema[string] all;
Expand Down Expand Up @@ -231,7 +228,7 @@ class Dereferencer {
try {
all[path] = new Schema(baseName(path), shortPath, checkRefs(body), parseJSON(body));
} catch(JSONException e) {
throw new BadJsonException(shortPath, e);
throw new BadJsonException(path[inDir.length..$], e);
}
}
}
Expand Down

0 comments on commit a426846

Please sign in to comment.