diff --git a/src/node.cc b/src/node.cc index f2656e8a53635d..beeebe6923a18e 100644 --- a/src/node.cc +++ b/src/node.cc @@ -4372,7 +4372,7 @@ void Init(int* argc, if (!i18n::InitializeICUDirectory(icu_data_dir)) { fprintf(stderr, "%s: could not initialize ICU " - "(check NODE_ICU_DATA or --icu-data-dir parameters)\n", + "(check NODE_ICU_DATA or --icu-data-dir parameters)", argv[0]); exit(9); } diff --git a/test/parallel/test-icu-data-dir.js b/test/parallel/test-icu-data-dir.js index f8a5e77dbd9660..3882acb92c767c 100644 --- a/test/parallel/test-icu-data-dir.js +++ b/test/parallel/test-icu-data-dir.js @@ -9,7 +9,7 @@ const { spawnSync } = require('child_process'); const expected = 'could not initialize ICU ' + - '(check NODE_ICU_DATA or --icu-data-dir parameters)\n'; + '(check NODE_ICU_DATA or --icu-data-dir parameters)'; { const child = spawnSync(process.execPath, ['--icu-data-dir=/', '-e', '0']);