MCPcopy Create free account
hub / github.com/GCWing/BitFun / formatErrorMessage

Function formatErrorMessage

src/web-ui/src/app/hooks/useWindowControls.ts:21–22  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

19const log = createLogger('useWindowControls');
20
21const formatErrorMessage = (error: unknown) =>
22 error instanceof Error ? error.message : String(error);
23
24const createWindowKeyboardFocusTarget = (
25 appWindow: ReturnType<typeof getCurrentWindow> | null

Callers 2

handleVisibilityChangeFunction · 0.85
useWindowControlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected