You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
err already sets httpStatus now
This commit is contained in:
@@ -116,8 +116,6 @@ export class MatrixHttpApi<O extends IHttpOpts> extends FetchHttpApi<O> {
|
||||
defer.reject(err);
|
||||
return;
|
||||
}
|
||||
|
||||
(<MatrixError>err).httpStatus = xhr.status;
|
||||
defer.reject(new ConnectionError("request failed", err));
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user