mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 05:52:41 +00:00
fix: Show wrong password error on V4 migration as well
Check if the sqlite error "file is not a database" is included the error message and ignore the custom app error substrings.
This commit is contained in:
parent
a8b034a35b
commit
50bad5539b
@ -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" || error.startsWith("failed to set ")) {
|
if (error.includes("file is not a database")) {
|
||||||
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…
x
Reference in New Issue
Block a user