Skip to content

test: add useful info to error msg and refactor

Add useful info about process.domain to error meesages in the uncaughtException event listener and the beforeExit event listener.

Refactor code such as using template literals, and also make sure uncaughtException listner is detached after firing once to avoid endless loop in case of exception throw in the beforeExit event listner.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Merge request reports

Loading