We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a480a9 commit 266e965Copy full SHA for 266e965
1 file changed
packages/opencode/src/util/error.ts
@@ -26,12 +26,7 @@ export function errorMessage(error: unknown): string {
26
return error.message
27
}
28
29
- if (
30
- isRecord(error) &&
31
- isRecord(error.data) &&
32
- typeof error.data.message === "string" &&
33
- error.data.message
34
- ) {
+ if (isRecord(error) && isRecord(error.data) && typeof error.data.message === "string" && error.data.message) {
35
return error.data.message
36
37
0 commit comments