mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-06 01:49:53 +00:00
11 lines
310 B
TypeScript
11 lines
310 B
TypeScript
export function errorDescriptionKey(error: unknown) {
|
|
if (
|
|
typeof error === "object" &&
|
|
error !== null &&
|
|
"localServerStartup" in error &&
|
|
error.localServerStartup === true
|
|
) {
|
|
return "error.page.description.localServerStartup" as const
|
|
}
|
|
return "error.page.description" as const
|
|
}
|