Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: harden error handling in
lib/cli/run.js
(#5074)
* Bugfix: Output stacktrace to support typescript errors. Before this patch the errorhandling would fail with the error: "ERROR: null". Debug showed that the error "caught error sometime before command handler: TypeError: Cannot convert object to primitive value" * Update lib/cli/run.js Co-authored-by: Pelle Wessman <pelle@kodfabrik.se> * Fix minor typo. * Update lib/cli/run.js Do not change the original functionality. Co-authored-by: Pelle Wessman <pelle@kodfabrik.se> * Check that the toString method is available on the error. * Opting for a simplified solution * Fix tests --------- Co-authored-by: Pelle Wessman <pelle@kodfabrik.se>
- Loading branch information