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

Class

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

Source from the content-addressed store, hash-verified

8
9// Indicates that the error is used only to interrupt control flow, but not in the return value
10export class DiscardedError extends Error {}
11
12// Proper way to set `error.name`: it should be inherited and non-enumerable
13const setErrorName = (ErrorClass, value) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected