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 dc773dc commit f8890b3Copy full SHA for f8890b3
1 file changed
objectstore-service/src/backend/tiered.rs
@@ -599,9 +599,10 @@ impl TryFrom<&UploadId> for TieredUploadId {
599
let json = base64::engine::general_purpose::URL_SAFE_NO_PAD
600
.decode(value.as_bytes())
601
.map_err(|e| {
602
- Error::new(ErrorKind::Internal).context(format!("invalid multipart upload ID: {e}"))
+ Error::new(ErrorKind::InvalidInput)
603
+ .context(format!("invalid multipart upload ID: {e}"))
604
})?;
- serde_json::from_slice(&json).context("decoding multipart token")
605
+ serde_json::from_slice(&json).kind(ErrorKind::InvalidInput)
606
}
607
608
0 commit comments