Merge branch 'develop' into dist/ubuntu/bionic/develop

This commit is contained in:
wpetit 2020-05-06 11:30:44 +02:00
commit f5ed5a746a
2 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,7 @@ import { put } from 'redux-saga/effects';
import { logout } from '../actions/logout';
export function* failuresSaga(action) {
const err = action.error;
if (err instanceof GiteaUnauthorizedError) {
if (action.error instanceof GiteaUnauthorizedError) {
yield put(logout());
}
}

View File

@ -2,6 +2,7 @@
export class GiteaUnauthorizedError extends Error {
constructor(...args: any[]) {
super(...args)
Object.setPrototypeOf(this, GiteaUnauthorizedError.prototype);
}
}