Skip to content

Commit 3d9aae6

Browse files
committed
improving JSON.parse error messaging
1 parent 6ff26bd commit 3d9aae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/lib/JSONSchemaMarkdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class JSONSchemaMarkdown {
7070
try {
7171
this.schema = JSON.parse(schema);
7272
} catch (e) {
73-
this.error('invalid json: ' + e.stack);
73+
this.error('invalid json: ' + e.message);
7474
}
7575
} else {
7676
this.schema = schema;

0 commit comments

Comments
 (0)