Skip to content

Commit

Permalink
Improve fatal error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Apr 5, 2021
1 parent 268dd2c commit c171c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tddb/td/db/SqliteKeyValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c171c9a

Please sign in to comment.