Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

print error info for Database error in the sp-blockchain::Error type. #14248

Merged
merged 1 commit into from
Jun 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion primitives/blockchain/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub enum Error {
#[error("Transaction pool not ready for block production.")]
TransactionPoolNotReady,

#[error("Database")]
#[error("Database error: {0}")]
DatabaseError(#[from] sp_database::error::DatabaseError),

#[error("Failed to get header for hash {0}")]
Expand Down