MCPcopy Index your code
hub / github.com/glideapps/quicktype / callAndReportFailure

Function callAndReportFailure

test/utils.ts:32–38  ·  view source on GitHub ↗
(message: string, f: () => T)

Source from the content-addressed store, hash-verified

30}
31
32function callAndReportFailure<T>(message: string, f: () => T): T | never {
33 try {
34 return f();
35 } catch (e) {
36 return failWith(message, { error: e });
37 }
38}
39
40export function exec(
41 s: string,

Callers 1

compareJsonFileToJsonFunction · 0.85

Calls 1

failWithFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…