Extract detection and segmentation workflow hooks
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-17 02:13:57 +02:00
parent 019dc8da7a
commit 6c32f29245
9 changed files with 630 additions and 326 deletions
+7
View File
@@ -0,0 +1,7 @@
export function formatError(error: unknown, fallback: string): string {
if (error instanceof Error) {
const code = (error as { code?: string }).code
return code ? `${error.message} (${code})` : error.message
}
return fallback
}