Fix handling of wrong pin
This commit is contained in:
parent
a3bb85599a
commit
f39e095168
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import { ApiError } from '../error';
|
||||
import { logError } from '../sentry';
|
||||
import { getToken } from '../storage/localStorage/helpers';
|
||||
import HTTPService from './HTTPService';
|
||||
|
@ -31,6 +32,9 @@ class CastGateway {
|
|||
}
|
||||
);
|
||||
} catch (e) {
|
||||
if (e instanceof ApiError && e.httpStatusCode === 404) {
|
||||
return '';
|
||||
}
|
||||
logError(e, 'failed to getPublicKey');
|
||||
throw e;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue