diff --git a/crates/web5/src/credentials/create.rs b/crates/web5/src/credentials/create.rs index 278ac373..53c0c0d1 100644 --- a/crates/web5/src/credentials/create.rs +++ b/crates/web5/src/credentials/create.rs @@ -640,7 +640,10 @@ mod tests { match result { Err(Web5Error::Network(err_msg)) => { - assert!(err_msg.contains("failed to lookup address information")) + assert!( + err_msg.contains("failed to lookup address information"), + "Error message is: {}", err_msg + ) } _ => panic!( "expected Web5Error::Network with specific message but got {:?}", diff --git a/crates/web5/src/credentials/verifiable_credential_1_1.rs b/crates/web5/src/credentials/verifiable_credential_1_1.rs index df02008d..491cbbe5 100644 --- a/crates/web5/src/credentials/verifiable_credential_1_1.rs +++ b/crates/web5/src/credentials/verifiable_credential_1_1.rs @@ -770,7 +770,10 @@ mod tests { match result { Err(Web5Error::Network(err_msg)) => { - assert!(err_msg.contains("failed to lookup address information")) + assert!( + err_msg.contains("failed to lookup address information"), + "Error message is: {}", err_msg + ) } _ => panic!( "expected Web5Error::Network with specific message but got {:?}",