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

Method message

packages/effect/src/unstable/cli/CliError.ts:547–552  ·  view source on GitHub ↗

* Returns the explicit user-facing message or a safe fallback from `cause`. * * @since 4.0.0

()

Source from the content-addressed store, hash-verified

545 * @since 4.0.0
546 */
547 override get message() {
548 if (this.userMessage) return this.userMessage
549 if (typeof this.cause === "string" && this.cause) return this.cause
550 if (this.cause instanceof Error && this.cause.message) return this.cause.message
551 return "An error occurred"
552 }
553}
554
555/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected