mirror of https://github.com/fafhrd91/actix-web
add error to message in test helper func
This commit is contained in:
parent
d0c6ca7671
commit
4d1c60466c
|
@ -270,7 +270,7 @@ where
|
||||||
let body = read_body(res).await;
|
let body = read_body(res).await;
|
||||||
|
|
||||||
serde_json::from_slice(&body)
|
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>
|
pub async fn load_stream<S>(mut stream: S) -> Result<Bytes, Error>
|
||||||
|
|
Loading…
Reference in New Issue