Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 4411d1d

Browse files
committed
Uses Display for error in VerifyAccountsHashInBackground's panic message
1 parent c6451e9 commit 4411d1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

accounts-db/src/verify_accounts_hash_in_background.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl VerifyAccountsHashInBackground {
6767
}
6868
let result = lock.take().unwrap().join().unwrap();
6969
if !result {
70-
panic!("initial hash verification failed: {result:?}");
70+
panic!("initial background accounts hash verification failed: {result}");
7171
}
7272
// we never have to check again
7373
self.verification_complete();
@@ -139,7 +139,7 @@ pub mod tests {
139139
}
140140

141141
#[test]
142-
#[should_panic(expected = "initial hash verification failed")]
142+
#[should_panic(expected = "initial background accounts hash verification failed")]
143143
fn test_panic() {
144144
let verify = Arc::new(VerifyAccountsHashInBackground::default());
145145
start_thread_and_return(&verify, false, || {});

0 commit comments

Comments
 (0)