diff --git a/crates/nu-command/src/commands/into/string.rs b/crates/nu-command/src/commands/into/string.rs index 0b1ca9ae..d0c33afc 100644 --- a/crates/nu-command/src/commands/into/string.rs +++ b/crates/nu-command/src/commands/into/string.rs @@ -140,6 +140,7 @@ pub fn action( let byte_string = InlineShape::format_bytes(*a_filesize, None); byte_string.1 } + Primitive::Nothing => "nothing".to_string(), _ => { return Err(ShellError::unimplemented( "str from for non-numeric primitives", diff --git a/crates/nu-command/src/commands/str_/from.rs b/crates/nu-command/src/commands/str_/from.rs index b3f3fb61..e23ef2e9 100644 --- a/crates/nu-command/src/commands/str_/from.rs +++ b/crates/nu-command/src/commands/str_/from.rs @@ -132,10 +132,12 @@ pub fn action( let byte_string = InlineShape::format_bytes(*a_filesize, None); byte_string.1 } + Primitive::Nothing => "nothing".to_string(), _ => { - return Err(ShellError::unimplemented( - "str from for non-numeric primitives", - )) + return Err(ShellError::unimplemented(&format!( + "str from for non-numeric primitives {:?}", + prim + ))) } }) .into_value(tag)),