mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-30 13:51:48 +08:00
chore: generate
This commit is contained in:
committed by
Aiden Cline
parent
6196b81e0a
commit
fa8b7bc4d2
@@ -26,12 +26,7 @@ export function errorMessage(error: unknown): string {
|
||||
return error.message
|
||||
}
|
||||
|
||||
if (
|
||||
isRecord(error) &&
|
||||
isRecord(error.data) &&
|
||||
typeof error.data.message === "string" &&
|
||||
error.data.message
|
||||
) {
|
||||
if (isRecord(error) && isRecord(error.data) && typeof error.data.message === "string" && error.data.message) {
|
||||
return error.data.message
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user