MCPcopy Create free account
hub / github.com/Effect-TS/effect / error

Function error

packages/effect/src/process/CommandLine.ts:536–541  ·  view source on GitHub ↗
(
    reason: CommandLineError["reason"],
    message: string,
    at = part
  )

Source from the content-addressed store, hash-verified

534 let part = 0
535
536 const error = (
537 reason: CommandLineError["reason"],
538 message: string,
539 at = part
540 ): Result.Result<never, CommandLineError> =>
541 Result.fail(new CommandLineError({ reason, message: `${message} in template part ${at}` }))
542
543 const endWord = (): void => {
544 if (word.length === 0) return

Callers 8

scanFunction · 0.70
parseTemplateFunction · 0.70
failSyncFunction · 0.50
causeReasonEquivalenceFunction · 0.50
causeReasonToFormatterFunction · 0.50
settledMapFunction · 0.50
snapshotRunFunction · 0.50
Field.tsFile · 0.50

Calls 1

failMethod · 0.65

Tested by

no test coverage detected