MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / getErrorMessage

Function getErrorMessage

src/services/TaskCalendarSyncService.ts:79–90  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

77}
78
79function getErrorMessage(error: unknown): string {
80 if (error instanceof Error) {
81 return error.message;
82 }
83 if (error !== null && typeof error === "object") {
84 const message = (error as { message?: unknown }).message;
85 if (message !== undefined) {
86 return stringifyUnknown(message);
87 }
88 }
89 return stringifyUnknown(error);
90}
91
92function isAlreadyDeletedError(error: unknown): boolean {
93 const status = getErrorStatus(error);

Callers 5

queueTaskSyncMethod · 0.70
queueCalendarDeletionMethod · 0.70
processDeletionQueueMethod · 0.70
syncTaskToCalendarMethod · 0.70

Calls 1

stringifyUnknownFunction · 0.90

Tested by

no test coverage detected