MCPcopy
hub / github.com/desktop/desktop / isErrnoException

Function isErrnoException

app/src/lib/errno-exception.ts:28–34  ·  view source on GitHub ↗
(err: any)

Source from the content-addressed store, hash-verified

26 * more details.
27 */
28export function isErrnoException(err: any): err is IErrnoException {
29 return (
30 err instanceof Error &&
31 typeof (err as any).code === 'string' &&
32 typeof (err as any).syscall === 'string'
33 )
34}

Callers 2

isBusyErrorFunction · 0.90
gitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected