mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 08:09:51 +00:00
chore: generate
This commit is contained in:
parent
6196b81e0a
commit
fa8b7bc4d2
1 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue