diff options
| author | Anna Henningsen <anna@addaleax.net> | 2020-01-21 20:30:35 +0100 |
|---|---|---|
| committer | Anna Henningsen <anna@addaleax.net> | 2020-01-23 22:39:00 +0100 |
| commit | 32e7e813e93ec3d0625d315658288769e448dd99 (patch) | |
| tree | 9479d9ed447e6a75b158a43a558e3aadb2b1db63 /src/node_errors.h | |
| parent | 9cc747bfcea131797fbf0fcc805f1d7fa244b7da (diff) | |
| download | node-new-32e7e813e93ec3d0625d315658288769e448dd99.tar.gz | |
src: use custom fprintf alike to write errors to stderr
This allows printing errors that contain nul characters, for example.
Fixes: https://github.com/nodejs/node/issues/28761
Fixes: https://github.com/nodejs/node/issues/31218
PR-URL: https://github.com/nodejs/node/pull/31446
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_errors.h')
| -rw-r--r-- | src/node_errors.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_errors.h b/src/node_errors.h index bc180b2a68..d56bf7ef5a 100644 --- a/src/node_errors.h +++ b/src/node_errors.h @@ -25,8 +25,6 @@ void AppendExceptionLine(Environment* env, [[noreturn]] void FatalError(const char* location, const char* message); void OnFatalError(const char* location, const char* message); -void PrintErrorString(const char* format, ...); - // Helpers to construct errors similar to the ones provided by // lib/internal/errors.js. // Example: with `V(ERR_INVALID_ARG_TYPE, TypeError)`, there will be |
