MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / toErrorMessage

Function toErrorMessage

src/utils/errors.ts:78–80  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

76 * Normalize an unknown thrown value to a string message.
77 */
78export function toErrorMessage(error: unknown): string {
79 return error instanceof Error ? error.message : String(error);
80}

Calls

no outgoing calls

Tested by

no test coverage detected