MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getErrorMessage

Function getErrorMessage

src/hooks/fileDropzoneLocalSources.ts:76–78  ·  view source on GitHub ↗
(error: unknown, fallback: string)

Source from the content-addressed store, hash-verified

74}
75
76function getErrorMessage(error: unknown, fallback: string): string {
77 return error instanceof Error ? error.message : fallback;
78}
79
80async function yieldToPaint(deps: Pick<LocalSourceBaseDeps, 'waitForPaint'>): Promise<void> {
81 await (deps.waitForPaint ?? waitForBrowserPaint)();

Callers 3

loadLocalZipFileFunction · 0.70
loadDropPayloadFunction · 0.70
loadBrowsedDirectoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected