MCPcopy Create free account
hub / github.com/arktypeio/arktype / fail

Function fail

ark/aot/cli.ts:100–104  ·  view source on GitHub ↗
(problem: string)

Source from the content-addressed store, hash-verified

98 )}\n ark emit [--declare] [--tsconfig <path>] [...the options check takes]\n ark declare [--tsconfig <path>] [--checker <${checkers.join("|")}>]`
99
100const fail = (problem: string): never => {
101 if (isCheckJson) emitJsonFailure(problem, 2)
102 console.error(`${problem}\n${usage}`)
103 process.exit(2)
104}
105
106// file errors (e.g. an unparseable package.json or ark.json) aren't usage errors
107const failSettings = (e: unknown): never => {

Callers 4

reportDiagnosticsFunction · 0.70
failSettingsFunction · 0.70
cli.tsFile · 0.70
declareFunction · 0.70

Calls 2

emitJsonFailureFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected