forked from extern/nushell
parent
4052a99ff5
commit
7ee22603ac
@ -133,6 +133,10 @@ pub fn action(input: &Value, span: Span) -> Value {
|
|||||||
},
|
},
|
||||||
Err(error) => Value::Error { error },
|
Err(error) => Value::Error { error },
|
||||||
},
|
},
|
||||||
|
Value::Nothing { .. } => Value::Filesize {
|
||||||
|
val: 0,
|
||||||
|
span: value_span,
|
||||||
|
},
|
||||||
_ => Value::Error {
|
_ => Value::Error {
|
||||||
error: ShellError::UnsupportedInput(
|
error: ShellError::UnsupportedInput(
|
||||||
"'into filesize' for unsupported type".into(),
|
"'into filesize' for unsupported type".into(),
|
||||||
|
Loading…
Reference in New Issue
Block a user