MCPcopy Create free account
hub / github.com/sindresorhus/execa / isExecaError

Function isExecaError

lib/return/final-error.js:31–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30// Unlike `instanceof`, this works across realms
31export const isExecaError = error => isErrorInstance(error) && execaErrorSymbol in error;
32
33const execaErrorSymbol = Symbol('isExecaError');
34

Callers 1

getOriginalMessageFunction · 0.90

Calls 1

isErrorInstanceFunction · 0.85

Tested by

no test coverage detected