Improve error message.
This commit is contained in:
parent
53dab67f7b
commit
91f7d06282
@ -6,6 +6,7 @@
|
||||
//
|
||||
#include "td/db/SqliteKeyValue.h"
|
||||
|
||||
#include "td/utils/base64.h"
|
||||
#include "td/utils/logging.h"
|
||||
#include "td/utils/ScopeGuard.h"
|
||||
|
||||
@ -54,7 +55,7 @@ SqliteKeyValue::SeqNo SqliteKeyValue::set(Slice key, Slice value) {
|
||||
set_stmt_.bind_blob(2, value).ensure();
|
||||
auto status = set_stmt_.step();
|
||||
if (status.is_error()) {
|
||||
LOG(FATAL) << "Failed to set \"" << key << "\": " << status.error();
|
||||
LOG(FATAL) << "Failed to set \"" << base64_encode(key) << "\": " << status.error();
|
||||
}
|
||||
// set_stmt_.step().ensure();
|
||||
set_stmt_.reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user