Error on missing column during cell path

This commit is contained in:
JT
2021-10-12 08:51:54 +13:00
parent 6e92812cdf
commit 1a15f30eb8
3 changed files with 30 additions and 18 deletions

View File

@ -52,7 +52,7 @@ impl Command for Select {
fn select(span: Span, columns: Vec<CellPath>, input: Value) -> Result<Value, ShellError> {
if columns.is_empty() {
return Err(ShellError::CantFindColumn(span));
return Err(ShellError::CantFindColumn(span, input.span()?));
}
match input {