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
|
return error.message
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (isRecord(error) && isRecord(error.data) && typeof error.data.message === "string" && error.data.message) {
|
||||||
isRecord(error) &&
|
|
||||||
isRecord(error.data) &&
|
|
||||||
typeof error.data.message === "string" &&
|
|
||||||
error.data.message
|
|
||||||
) {
|
|
||||||
return error.data.message
|
return error.data.message
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user