Add additional span to IncorrectValue error (#10036)

This commit is contained in:
Jakub Žádník
2023-08-18 20:47:05 +03:00
committed by GitHub
parent cdf09abcc0
commit fb908df17d
4 changed files with 13 additions and 5 deletions

View File

@ -65,7 +65,8 @@ fn get_compression(call: &Call) -> Result<Option<AvroCompression>, ShellError> {
"deflate" => Ok(Some(AvroCompression::Deflate)),
_ => Err(ShellError::IncorrectValue {
msg: "compression must be one of deflate or snappy".to_string(),
span,
val_span: span,
call_span: span,
}),
}
} else {