We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b57c361 commit 6917da0Copy full SHA for 6917da0
types/common.ts
@@ -519,7 +519,7 @@ export interface UnitErrorPayload {
519
export const extractUnitError = (underlying: any): UnitError => {
520
// for now, we only support extracting a UnitError from an axios error
521
if (!underlying || !axiosStatic.isAxiosError(underlying) || !underlying.response) {
522
- return new UnitError("Unknown Error", underlying)
+ return new UnitError(`Unknown Error - ${underlying.message}`, underlying)
523
}
524
525
let message = `${underlying.response.status} - ${underlying.response.statusText ?? "Error"}`
0 commit comments