Improve fatal error message.

This commit is contained in:
levlam 2021-04-06 01:19:30 +03:00
parent 268dd2cf12
commit c171c9a743

View File

@ -66,7 +66,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 << '"';
LOG(FATAL) << "Failed to set \"" << key << "\": " << status.error();
}
// set_stmt_.step().ensure();
set_stmt_.reset();