diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-03-01 16:21:11 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-03-01 16:45:51 +0100 |
| commit | 631f7f0981961a046401d8cf217b19ca4ea2f2b0 (patch) | |
| tree | 4cf192b84879aa71d83e6a993efe08d618c40f5b /gui/src/renderer/components | |
| parent | ac728cbef306c08698c66c3e3f1515e8cb636ea3 (diff) | |
| download | mullvadvpn-631f7f0981961a046401d8cf217b19ca4ea2f2b0.tar.xz mullvadvpn-631f7f0981961a046401d8cf217b19ca4ea2f2b0.zip | |
Convert AuthFailure to Error subclass and dynamically query gettext strings
Diffstat (limited to 'gui/src/renderer/components')
| -rw-r--r-- | gui/src/renderer/components/NotificationArea.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/renderer/components/NotificationArea.tsx b/gui/src/renderer/components/NotificationArea.tsx index bf2969480b..543ba90edf 100644 --- a/gui/src/renderer/components/NotificationArea.tsx +++ b/gui/src/renderer/components/NotificationArea.tsx @@ -16,7 +16,7 @@ import { import { BlockReason, TunnelStateTransition } from '../../shared/daemon-rpc-types'; import AccountExpiry from '../lib/account-expiry'; -import { AuthFailure } from '../lib/auth-failure'; +import { AuthFailureError } from '../lib/auth-failure'; import { IVersionReduxState } from '../redux/version/reducers'; interface IProps { @@ -43,7 +43,7 @@ type State = NotificationAreaPresentation & { function getBlockReasonMessage(blockReason: BlockReason): string { switch (blockReason.reason) { case 'auth_failed': { - return new AuthFailure(blockReason.details).show(); + return new AuthFailureError(blockReason.details).message; } case 'ipv6_unavailable': return pgettext( |
