core: return error response when wrong passphrase is passed to start

This commit is contained in:
Evgeny Poberezkin committed 2023-09-27 21:15:19 +01:00
1 parent bbe329072e
commit ea319313f1
6 files changed
+34 -27

No files matched your search

+1 -1
View File
@@ -1648,7 +1648,7 @@ viewChatError logLevel = \case
DBErrorEncrypted -> ["error: chat database is already encrypted"]
DBErrorPlaintext -> ["error: chat database is not encrypted"]
DBErrorExport e -> ["error encrypting database: " <> sqliteError' e]
DBErrorOpen e -> ["error opening database after encryption: " <> sqliteError' e]
DBErrorOpen e -> ["error opening database: " <> sqliteError' e]
e -> ["chat database error: " <> sShow e]
ChatErrorAgent err entity_ -> case err of
CMD PROHIBITED -> [withConnEntity <> "error: command is prohibited"]