MCPcopy
hub / github.com/nukeop/nuclear / resolveErrorMessage

Function resolveErrorMessage

packages/player/src/utils/logging.ts:7–15  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

5import { formatLogValue, Logger, LogScope } from '../services/logger';
6
7export const resolveErrorMessage = (error: unknown): string => {
8 if (isError(error)) {
9 return error.message;
10 }
11 if (isString(error)) {
12 return error;
13 }
14 return 'Unknown error';
15};
16
17const TOAST_MAX_LENGTH = 100;
18

Callers 11

SoundProviderFunction · 0.90
ensureDirFunction · 0.90
saveToDiskFunction · 0.90
saveToDiskFunction · 0.90
updaterStore.tsFile · 0.90
createStreamingHostFunction · 0.90
checkAndUpdatePluginsFunction · 0.90
useInstallPluginFunction · 0.90
reportErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected