Add warning if TdDb::check_encryption fails.

This commit is contained in:
levlam 2021-09-29 20:59:20 +03:00
parent 2d9b7a6e93
commit 5f19e0267f

View File

@ -54,6 +54,7 @@ Result<TdDb::EncryptionInfo> check_encryption(string path) {
Binlog binlog;
auto status = binlog.init(path, Binlog::Callback());
if (status.is_error() && status.code() != Binlog::Error::WrongPassword) {
LOG(WARNING) << "Failed to check binlog: " << status;
return Status::Error(400, status.message());
}
TdDb::EncryptionInfo info;