mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-27 18:46:18 -04:00
* fix: handle non-native Error throws in requirePnpmfile When a pnpmfile throws a non-native Error value (e.g. a string), `assert(util.types.isNativeError(err))` crashes pnpm with an unhelpful assertion failure. Replace the assertion with a guard that wraps non-native errors into a proper Error and reports them via PnpmFileFailError. * fix: improve non-native error wrapping with toError helper
2 lines
51 B
JavaScript
2 lines
51 B
JavaScript
throw 'this is a string error, not a native Error'
|