GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — errors: disp ver on fatal except that causes exit · fredericp/node@59d3d54

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc
    • api
      • cli.md
    • node.1
  • src
    • node_errors.cc
    • node_options.cc
    • node_options.h
  • test
    • message
      • assert_throws_stack.out
      • core_line_numbers.out
      • error_aggregateTwoErrors.out
      • error_exit.out
      • error_with_nul.out
      • esm_display_syntax_error.out
      • esm_display_syntax_error_import.out
      • esm_display_syntax_error_import_module.out
      • esm_display_syntax_error_module.out
      • esm_loader_not_found.out
      • esm_loader_not_found_cjs_hint_bare.out
      • esm_loader_not_found_cjs_hint_relative.out
      • esm_loader_syntax_error.out
      • eval_messages.out
      • events_unhandled_error_common_trace.out
      • events_unhandled_error_nexttick.out
      • events_unhandled_error_sameline.out
      • events_unhandled_error_subclass.out
      • if-error-has-good-stack.out
      • internal_assert.out
      • internal_assert_fail.out
      • nexttick_throw.out
      • promise_always_throw_unhandled.out
      • source_map_disabled_by_api.out
      • source_map_enabled_by_api.out
      • source_map_enclosing_function.out
      • source_map_reference_error_tabs.out
      • source_map_throw_first_tick.out
      • source_map_throw_icu.out
      • source_map_throw_set_immediate.out
      • stack_overflow.out
      • stdin_messages.out
      • test-no-extra-info-on-fatal-exception.js
      • test-no-extra-info-on-fatal-exception.out
      • throw_custom_error.out
      • throw_error_with_getter_throw.out
      • throw_error_with_getter_throw_traced.out
      • throw_in_line_with_tabs.out
      • throw_non_error.out
      • throw_null.out
      • throw_null_traced.out
      • throw_undefined.out
      • throw_undefined_traced.out
      • timeout_throw.out
      • undefined_reference_in_new_context.out
      • vm_display_runtime_error.out
      • vm_display_syntax_error.out
      • vm_dont_display_runtime_error.out
      • vm_dont_display_syntax_error.out
    • parallel
      • test-cli-node-options.js
      • test-error-reporting.js
    • pseudo-tty
      • test-fatal-error.out

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Expand file

‎doc/api/cli.md‎

Copy file name to clipboardExpand all lines: doc/api/cli.md
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Collapse file

‎doc/node.1‎

Copy file name to clipboardExpand all lines: doc/node.1
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ It is kept for compatibility.
273273
.It Fl -no-deprecation
274274
Silence deprecation warnings.
275275
.
276+
.It Fl -no-extra-info-on-fatal-exception
277+
Hide extra information on fatal exception that causes exit.
278+
.
276279
.It Fl -no-force-async-hooks-checks
277280
Disable runtime checks for `async_hooks`.
278281
These will still be enabled dynamically when `async_hooks` is enabled.
Collapse file

‎src/node_errors.cc‎

Copy file name to clipboardExpand all lines: src/node_errors.cc
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ static void ReportFatalException(Environment* env,
414414
}
415415
}
416416

417+
if (env->options()->extra_info_on_fatal_exception) {
418+
FPrintF(stderr, "\nNode.js %s\n", NODE_VERSION);
419+
}
420+
417421
fflush(stderr);
418422
}
419423

Collapse file

‎src/node_options.cc‎

Copy file name to clipboardExpand all lines: src/node_options.cc
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,11 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
511511
"show stack traces on process warnings",
512512
&EnvironmentOptions::trace_warnings,
513513
kAllowedInEnvironment);
514+
AddOption("--extra-info-on-fatal-exception",
515+
"hide extra information on fatal exception that causes exit",
516+
&EnvironmentOptions::extra_info_on_fatal_exception,
517+
kAllowedInEnvironment,
518+
true);
514519
AddOption("--unhandled-rejections",
515520
"define unhandled rejections behavior. Options are 'strict' "
516521
"(always raise an error), 'throw' (raise an error unless "
Collapse file

‎src/node_options.h‎

Copy file name to clipboardExpand all lines: src/node_options.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ class EnvironmentOptions : public Options {
150150
bool trace_tls = false;
151151
bool trace_uncaught = false;
152152
bool trace_warnings = false;
153+
bool extra_info_on_fatal_exception = true;
153154
std::string unhandled_rejections;
154155
std::string userland_loader;
155156
bool verify_base_objects =
Collapse file

‎test/message/assert_throws_stack.out‎

Copy file name to clipboardExpand all lines: test/message/assert_throws_stack.out
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
3232
expected: { bar: true },
3333
operator: 'throws'
3434
}
35+
36+
Node.js *
Collapse file

‎test/message/core_line_numbers.out‎

Copy file name to clipboardExpand all lines: test/message/core_line_numbers.out
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ RangeError: Invalid input
1212
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
1313
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
1414
at node:internal/main/run_main_module:*:*
15+
16+
Node.js *
Collapse file

‎test/message/error_aggregateTwoErrors.out‎

Copy file name to clipboardExpand all lines: test/message/error_aggregateTwoErrors.out
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ AggregateError: original
1111
at node:internal/main/run_main_module:*:* {
1212
code: 'ERR0'
1313
}
14+
15+
Node.js *
Collapse file

‎test/message/error_exit.out‎

Copy file name to clipboardExpand all lines: test/message/error_exit.out
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
2020
expected: 2,
2121
operator: 'strictEqual'
2222
}
23+
24+
Node.js *
Collapse file

‎test/message/error_with_nul.out‎

Copy file name to clipboard
11 Bytes
Binary file not shown.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.