mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 06:58:36 +02:00
Improve external output in subexprs (#294)
This commit is contained in:
@ -111,7 +111,7 @@ fn _to_timezone(dt: DateTime<FixedOffset>, timezone: &Spanned<String>, span: Spa
|
||||
match datetime_in_timezone(&dt, timezone.item.as_str()) {
|
||||
Ok(dt) => Value::Date { val: dt, span },
|
||||
Err(_) => Value::Error {
|
||||
error: ShellError::UnsupportedInput(String::from("invalid time zone"), Span::unknown()),
|
||||
error: ShellError::UnsupportedInput(String::from("invalid time zone"), span),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user