diff --git a/crates/nu-command/src/core_commands/describe.rs b/crates/nu-command/src/core_commands/describe.rs index 7f18c2bfa1..d1d3080453 100644 --- a/crates/nu-command/src/core_commands/describe.rs +++ b/crates/nu-command/src/core_commands/describe.rs @@ -35,8 +35,13 @@ impl Command for Describe { )) } else { let value = input.into_value(call.head); + let description = match value { + Value::CustomValue { val, .. } => val.value_string(), + _ => value.get_type().to_string(), + }; + Ok(Value::String { - val: value.get_type().to_string(), + val: description, span: head, } .into_pipeline_data())