MCPcopy Create free account
hub / github.com/dulapahv/CodeX / parseError

Function parseError

apps/client/lib/utils.ts:38–47  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

36};
37
38export const parseError = (error: unknown): string => {
39 if (error instanceof Error) {
40 return error.message;
41 }
42 if (typeof error === "string") {
43 return error;
44 }
45
46 return "An unknown error occurred";
47};
48
49export const loginWithGithub = () => {
50 const width = 790;

Callers 15

saveLocalFunction · 0.90
toggleCameraFunction · 0.90
toggleMicFunction · 0.90
getMediaFunction · 0.90
createPeerFunction · 0.90
handleSignalFunction · 0.90
enumerateDevicesFunction · 0.90
useMediaDevicesFunction · 0.90
useWebcamStreamFunction · 0.90
handleJoinRoomFunction · 0.90
handleCreateRoomFunction · 0.90
fetchContentsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected