MCPcopy Index your code
hub / github.com/gitify-app/gitify / toError

Function toError

src/shared/logger.ts:8–10  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

6 * Safely coerce an unknown caught value into an Error instance.
7 */
8export function toError(err: unknown): Error {
9 return err instanceof Error ? err : new Error(String(err));
10}
11
12/**
13 * Logs an informational message via electron-log.

Callers 15

generateGitHubWebUrlFunction · 0.90
getAllNotificationsFunction · 0.90
enrichNotificationFunction · 0.90
refreshAccountFunction · 0.90
pollGitHubDeviceFlowFunction · 0.90
raiseSoundNotificationFunction · 0.90
initializeDeviceFlowFunction · 0.90
startPollingFunction · 0.90
LoginWithOAuthAppRouteFunction · 0.90
handleRefreshFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected