File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export class APIError extends MuxError {
49
49
headers : Headers | undefined ,
50
50
) {
51
51
if ( ! status ) {
52
- return new APIConnectionError ( { cause : castToError ( errorResponse ) } ) ;
52
+ return new APIConnectionError ( { message , cause : castToError ( errorResponse ) } ) ;
53
53
}
54
54
55
55
const error = errorResponse as Record < string , any > ;
@@ -101,7 +101,7 @@ export class APIUserAbortError extends APIError {
101
101
export class APIConnectionError extends APIError {
102
102
override readonly status : undefined = undefined ;
103
103
104
- constructor ( { message, cause } : { message ?: string ; cause ?: Error | undefined } ) {
104
+ constructor ( { message, cause } : { message ?: string | undefined ; cause ?: Error | undefined } ) {
105
105
super ( undefined , undefined , message || 'Connection error.' , undefined ) ;
106
106
// in some environments the 'cause' property is already declared
107
107
// @ts -ignore
You can’t perform that action at this time.
0 commit comments