From 266b2406cc17b53687a1ebec31e79b4c1c4cc2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Mon, 29 May 2023 11:19:52 +0200 Subject: [PATCH] fix: wrong error message on incorrect password Adjust to the new error messages when opening the database with the DB pool Fixes #10830 --- ui/app/AppLayouts/Onboarding/views/LoginView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Onboarding/views/LoginView.qml b/ui/app/AppLayouts/Onboarding/views/LoginView.qml index 5474179100..4fa1e64413 100644 --- a/ui/app/AppLayouts/Onboarding/views/LoginView.qml +++ b/ui/app/AppLayouts/Onboarding/views/LoginView.qml @@ -138,7 +138,7 @@ Item { if (error) { if (!root.startupStore.selectedLoginAccount.keycardCreatedAccount) { // SQLITE_NOTADB: "file is not a database" - if (error === "file is not a database") { + if (error === "file is not a database" || error.startsWith("failed to set ")) { txtPassword.validationError = qsTr("Password incorrect") } else { txtPassword.validationError = qsTr("Login failed: %1").arg(error.toUpperCase())