diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-09-08 17:46:09 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-09-08 20:10:18 +0200 |
commit | 68a49f353954bb32289f6e80281b2ed14312f679 (patch) | |
tree | 2dd48cbdc7bc7967244f2e632abd71ec29074333 /gui | |
parent | e217f990bcdc687b8c0cdf8f84929aaf5aa8f935 (diff) |
[feat] be more precise when login gives 502
Diffstat (limited to 'gui')
-rw-r--r-- | gui/qml/main.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/qml/main.qml b/gui/qml/main.qml index 4d0e648..fc47be0 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -46,7 +46,11 @@ ApplicationWindow { function showInitFailure(msg) { console.debug("ERRORS:", ctx.errors) if (msg == undefined) { - if (ctx.errors == 'bad_auth') { + if (ctx.errors == 'bad_auth_502') { + msg = qsTr("Oops! The authentication service seems down. Please try again later") + initFailure.title = qsTr("Service Error") + } + else if (ctx.errors == 'bad_auth') { if (allowEmptyPass) { // For now, this is a libraryVPN, so we can be explicit about what credentials are here. // Another option to consider is to customize the error strings while vendoring. |