MCPcopy Create free account
hub / github.com/firebase/firebase-tools / getError

Function getError

src/error.ts:93–98  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

91 * @return an Error object
92 */
93export function getError(err: unknown): Error {
94 if (err instanceof Error) {
95 return err;
96 }
97 return Error(getErrMsg(err));
98}
99
100/**
101 * Checks if a FirebaseError is caused by attempting something

Callers 15

requireDatabaseInstanceFunction · 0.90
archiveDirectoryFunction · 0.90
wrappedSafeLoadFunction · 0.90
ext-install.tsFile · 0.90
invokeTestsFunction · 0.90
ext-dev-init.tsFile · 0.90
ext-dev-usage.tsFile · 0.90
createNoteFunction · 0.90

Calls 2

ErrorInterface · 0.85
getErrMsgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…