nushell/crates/nu-protocol/src
Devyn Cairns 02659b1c8a
Mention the actual output type on an OutputMismatch error (#13355)
# Description

This improves the error when the determined output of a custom command
doesn't match the specified output type by adding the actual determined
output type.

# User-Facing Changes

Previous: `command doesn't output {0}`

New: `expected {0}, but command outputs {1}`

# Tests + Formatting
Passing.

# After Submitting
- [ ] release notes? (minor change, but helpful)
2024-07-12 11:45:53 +02:00
..
ast Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
config Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
debugger Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
engine Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
errors Mention the actual output type on an OutputMismatch error (#13355) 2024-07-12 11:45:53 +02:00
ir Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
pipeline Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
plugin remove the deprecated register command (#13297) 2024-07-05 07:16:50 -05:00
process Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
value Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
alias.rs Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
did_you_mean.rs Improve case insensitivity consistency (#10884) 2023-11-08 23:58:54 +01:00
eval_base.rs Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
eval_const.rs Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
example.rs Overhaul the plugin cache file with a new msgpack+brotli format (#12579) 2024-04-21 07:36:26 -05:00
id.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
lev_distance.rs Rework for new clippy lints (#12736) 2024-05-02 19:29:03 +02:00
lib.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
module.rs Enable reloading changes to a submodule (#13170) 2024-06-25 18:33:37 -07:00
parser_path.rs Enable reloading changes to a submodule (#13170) 2024-06-25 18:33:37 -07:00
signature.rs Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
span.rs Document public types in nu-protocol (#12906) 2024-07-11 13:30:12 +02:00
syntax_shape.rs open, rm, umv, cp, rm and du: Don't globs if inputs are variables or string interpolation (#11886) 2024-02-23 09:17:09 +08:00
ty.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00