This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: throw new error object so stack traces are valid
If the thrown error was not created where it's thrown, the stack trace does not reflect where the error was thrown from making it harder to debug problems. This PR removes the cached error object and instead creates a new one when required.
- Loading branch information