lib: refactor ERR_SYNTHETIC · nodejs/node@99bc0df · GitHub
Skip to content

Commit 99bc0df

Browse files
cjihrigaddaleax
authored andcommitted
lib: refactor ERR_SYNTHETIC
- Tidy up description in docs. - Remove a second definition in the docs. - Remove unused string input parameter. - Remove duplicate "JavaScript Callstack" in error messages. PR-URL: #25749 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 6967407 commit 99bc0df

3 files changed

Lines changed: 6 additions & 14 deletions

File tree

doc/api/errors.md

Lines changed: 2 additions & 8 deletions

lib/internal/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ E('ERR_STREAM_UNSHIFT_AFTER_END_EVENT',
923923
'stream.unshift() after end event', Error);
924924
E('ERR_STREAM_WRAP', 'Stream has StringDecoder set or is in objectMode', Error);
925925
E('ERR_STREAM_WRITE_AFTER_END', 'write after end', Error);
926-
E('ERR_SYNTHETIC', 'JavaScript Callstack: %s', Error);
926+
E('ERR_SYNTHETIC', 'JavaScript Callstack', Error);
927927
E('ERR_SYSTEM_ERROR', 'A system error occurred', SystemError);
928928
E('ERR_TLS_CERT_ALTNAME_INVALID',
929929
'Hostname/IP does not match certificate\'s altnames: %s', Error);

lib/internal/process/report.js

Lines changed: 3 additions & 5 deletions

0 commit comments

Comments
 (0)