Skip to content

Commit 227b169

Browse files
authored
web: fix invalid bit header error message (#1618)
1 parent c30cb78 commit 227b169

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tonic-web/src/call.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,10 @@ fn find_trailers(buf: &[u8]) -> Result<FindTrailers, Status> {
444444
}
445445

446446
if !(header == 0 || header == 1) {
447-
return Err(Status::internal("Invalid header bit {} expected 0 or 1"));
447+
return Err(Status::internal(format!(
448+
"Invalid header bit {} expected 0 or 1",
449+
header
450+
)));
448451
}
449452

450453
let msg_len = temp_buf.get_u32();

0 commit comments

Comments
 (0)