add error to message in test helper func

This commit is contained in:
Petar Dambovaliev 2020-12-03 23:55:06 +01:00
parent d0c6ca7671
commit 4d1c60466c
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ where
let body = read_body(res).await;
serde_json::from_slice(&body)
.unwrap_or_else(|_| panic!("read_response_json failed during deserialization"))
.unwrap_or_else(|e| panic!("read_response_json failed during deserialization: {}", e))
}
pub async fn load_stream<S>(mut stream: S) -> Result<Bytes, Error>