MCPcopy Create free account
hub / github.com/dailydotdev/apps / getErrorMessage

Function getErrorMessage

packages/webapp/components/settings/OAuthApps.tsx:77–78  ·  view source on GitHub ↗
(err: unknown, fallback: string)

Source from the content-addressed store, hash-verified

75 .filter(Boolean);
76
77const getErrorMessage = (err: unknown, fallback: string): string =>
78 err instanceof Error && err.message ? err.message : fallback;
79
80const AppLogo = ({ src }: { src?: string }): ReactElement | null => {
81 const [failedSrc, setFailedSrc] = useState<string>();

Callers 4

handleSubmitFunction · 0.70
handleRotateFunction · 0.70
handleDeleteFunction · 0.70
handleDisconnectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected