mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:15:42 +02:00
Logs and tests (#3247)
* Add command name to err * Add var name to error message * Add test for def comment in test
This commit is contained in:
@ -264,7 +264,7 @@ fn evaluate_reference(name: &str, ctx: &EvaluationContext, tag: Tag) -> Result<V
|
||||
Some(v) => Ok(v),
|
||||
None => Err(ShellError::labeled_error(
|
||||
"Variable not in scope",
|
||||
"unknown variable",
|
||||
format!("unknown variable: {}", x),
|
||||
tag.span,
|
||||
)),
|
||||
},
|
||||
|
Reference in New Issue
Block a user