Skip to content

Commit 6917da0

Browse files
committed
update error message
1 parent b57c361 commit 6917da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ export interface UnitErrorPayload {
519519
export const extractUnitError = (underlying: any): UnitError => {
520520
// for now, we only support extracting a UnitError from an axios error
521521
if (!underlying || !axiosStatic.isAxiosError(underlying) || !underlying.response) {
522-
return new UnitError("Unknown Error", underlying)
522+
return new UnitError(`Unknown Error - ${underlying.message}`, underlying)
523523
}
524524

525525
let message = `${underlying.response.status} - ${underlying.response.statusText ?? "Error"}`

0 commit comments

Comments
 (0)