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

@ -99,7 +99,10 @@ pub enum ShellError {
#[error("Cannot find column")]
#[diagnostic(code(nu::shell::column_not_found), url(docsrs))]
CantFindColumn(#[label = "cannot find column"] Span),
CantFindColumn(
#[label = "cannot find column"] Span,
#[label = "value originates here"] Span,
),
#[error("External command")]
#[diagnostic(code(nu::shell::external_command), url(docsrs))]