Skip to content

Commit a29ff42

Browse files
committed
chore: add info to error for debugging
1 parent adb7503 commit a29ff42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stackslib/src/net/http/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ impl FromStr for HttpContentType {
183183
} else if s == "application/json" {
184184
Ok(HttpContentType::JSON)
185185
} else {
186-
Err(CodecError::DeserializeError(
187-
"Unsupported HTTP content type".to_string(),
188-
))
186+
Err(CodecError::DeserializeError(format!(
187+
"Unsupported HTTP content type: {header}"
188+
)))
189189
}
190190
}
191191
}

0 commit comments

Comments
 (0)