Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
274 B
Raw Blame
/**
 * A thrown or rejected value as the words it carries: an Error's message,
 * anything else as a string.
 *
 * @param error what was caught
 * @returns the message
 */
export const messageOf = (error: unknown) =>
  error instanceof Error ? error.message : String(error)