fix: wrong error message on incorrect password
Adjust to the new error messages when opening the database with the DB pool Fixes #10830
This commit is contained in:
parent
1f582451aa
commit
266b2406cc
|
@ -138,7 +138,7 @@ Item {
|
||||||
if (error) {
|
if (error) {
|
||||||
if (!root.startupStore.selectedLoginAccount.keycardCreatedAccount) {
|
if (!root.startupStore.selectedLoginAccount.keycardCreatedAccount) {
|
||||||
// SQLITE_NOTADB: "file is not a database"
|
// 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")
|
txtPassword.validationError = qsTr("Password incorrect")
|
||||||
} else {
|
} else {
|
||||||
txtPassword.validationError = qsTr("Login failed: %1").arg(error.toUpperCase())
|
txtPassword.validationError = qsTr("Login failed: %1").arg(error.toUpperCase())
|
||||||
|
|
Loading…
Reference in New Issue