Uses Display for error in VerifyAccountsHashInBackground's panic message (#34219)

This commit is contained in:
Brooks 2023-11-27 09:51:39 -05:00 committed by GitHub
parent 57ec20704a
commit deee5f833c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ impl VerifyAccountsHashInBackground {
}
let result = lock.take().unwrap().join().unwrap();
if !result {
panic!("initial hash verification failed: {result:?}");
panic!("initial background accounts hash verification failed: {result}");
}
// we never have to check again
self.verification_complete();
@ -139,7 +139,7 @@ pub mod tests {
}
#[test]
#[should_panic(expected = "initial hash verification failed")]
#[should_panic(expected = "initial background accounts hash verification failed")]
fn test_panic() {
let verify = Arc::new(VerifyAccountsHashInBackground::default());
start_thread_and_return(&verify, false, || {});