Add file not found error for nu cmd args (#3627)

This commit is contained in:
JT
2021-06-16 14:57:14 +12:00
committed by GitHub
parent 0eae9c49b0
commit 7a4d6d64fd
2 changed files with 13 additions and 10 deletions

View File

@ -50,7 +50,7 @@ fn command(mut args: CommandArgs) -> Result<OutputStream, ShellError> {
let tag = args.call_info.name_tag.clone();
let value: Value = args.req(1)?;
let series_span = value.tag.span.clone();
let series_span = value.tag.span;
let series = match value.value {
UntaggedValue::DataFrame(PolarsData::Series(series)) => Ok(series),
_ => Err(ShellError::labeled_error(