MCPcopy Create free account
hub / github.com/0xcaff/codex-web / errorMessage

Function errorMessage

src/browser/workspace-root-dialog.tsx:26–31  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

24const DESCRIPTION_ID = "codex-web-workspace-root-dialog-description";
25
26function errorMessage(error: unknown): string {
27 if (error instanceof Error) {
28 return error.message;
29 }
30 return String(error);
31}
32
33function WorkspaceRootDialog({
34 listDirectory,

Callers 1

WorkspaceRootDialogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected