Commit 97dcbb2
fix: harden error handling in
* 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 <[email protected]>
* Fix minor typo.
* Update lib/cli/run.js
Do not change the original functionality.
Co-authored-by: Pelle Wessman <[email protected]>
* Check that the toString method is available on the error.
* Opting for a simplified solution
* Fix tests
---------
Co-authored-by: Pelle Wessman <[email protected]>lib/cli/run.js (#5074)1 parent 6f3f45e commit 97dcbb2
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments