fix the warning message when the user enters the wrong password (#20605)

This commit is contained in:
John Ngei 2024-07-06 00:15:36 +02:00 committed by GitHub
parent c473b8c9b1
commit a13975f3f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,8 +16,7 @@
[error]
(if (and (some? error)
(or (= error "file is not a database")
(string/starts-with? error "failed to set ")
(string/starts-with? error "Failed")))
(string/starts-with? (string/lower-case error) "failed")))
(i18n/label :t/oops-wrong-password)
error))