We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d9ee3 commit d3ad5acCopy full SHA for d3ad5ac
lightning-block-sync/src/http.rs
@@ -288,7 +288,7 @@ impl HttpClient {
288
HttpMessageLength::Empty => { Vec::new() },
289
HttpMessageLength::ContentLength(length) => {
290
if length == 0 || length > MAX_HTTP_MESSAGE_BODY_SIZE {
291
- return Err(std::io::Error::new(std::io::ErrorKind::InvalidData, "out of range"))
+ return Err(std::io::Error::new(std::io::ErrorKind::InvalidData, format!("invalid response length: {}", length)));
292
} else {
293
let mut content = vec![0; length];
294
#[cfg(feature = "tokio")]
0 commit comments