forked from extern/nushell
f481879ed3
related to - https://github.com/nushell/nushell/issues/9373 - https://github.com/nushell/nushell/issues/8639 might be able to close https://github.com/nushell/nushell/issues/8639? # Description "can't follow stream paths" errors have always been a bit scary and obnoxious because they give no information about what happens... in this PR i try to slightly improve the error message by telling if the stream was empty or not and give span information when available. # User-Facing Changes ```nushell > update value (get value) Error: nu:🐚:incompatible_path_access × Data cannot be accessed with a cell path ╭─[entry #1:1:1] 1 │ update value (get value) · ─┬─ · ╰── empty pipeline doesn't support cell paths ╰──── ``` ```nushell > ^echo "foo" | get 0 Error: nu:🐚:incompatible_path_access × Data cannot be accessed with a cell path ╭─[entry #2:1:1] 1 │ ^echo "foo" | get 0 · ──┬─ · ╰── external stream doesn't support cell paths ╰──── ``` # Tests + Formatting # After Submitting |
||
---|---|---|
.. | ||
ast | ||
engine | ||
value | ||
alias.rs | ||
cli_error.rs | ||
config.rs | ||
did_you_mean.rs | ||
eval_const.rs | ||
example.rs | ||
exportable.rs | ||
id.rs | ||
lev_distance.rs | ||
lib.rs | ||
module.rs | ||
parse_error.rs | ||
pipeline_data.rs | ||
plugin_signature.rs | ||
shell_error.rs | ||
signature.rs | ||
span.rs | ||
syntax_shape.rs | ||
ty.rs | ||
util.rs | ||
variable.rs |