We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a69ea3 commit 0672aadCopy full SHA for 0672aad
lib/json.js
@@ -416,7 +416,7 @@ function parseArgv(argv) {
416
parsed.delim = _parseString(outputDelim);
417
} catch (parseErr) {
418
throw new Error(format('could not parse delim "%s": %s',
419
- outputDelim, parseErr));
+ outputDelim, parseErr.message));
420
}
421
break;
422
case '-D':
test/output-delim/expected.stderr
@@ -1,3 +1,3 @@
1
# unsupported JavaScript-only escapes in -d DELIM
2
-json: error: could not parse delim "\0": SyntaxError: Unexpected number in JSON at position 2
3
-json: error: could not parse delim "\x2c": SyntaxError: Unexpected token x in JSON at position 2
+json: error: could not parse delim "\0": Unexpected number in JSON at position 2
+json: error: could not parse delim "\x2c": Unexpected token x in JSON at position 2
0 commit comments