1
0
mirror of https://github.com/nushell/nushell.git synced 2025-05-30 14:50:02 +02:00
zc he 02fcc485fb
fix(parser): skip eval_const if parsing errors detected to avoid panic ()
Fixes   

# Description

Early returns `NotAConstant` if parsing errors exist in the
subexpression.

I'm not sure when the span of a block will be None, and whether there're
better ways to handle none block spans, like a more suitable ShellError
type.

# User-Facing Changes

# Tests + Formatting

+1, but possibly not the easiest way to do it.

# After Submitting
2025-03-26 15:02:26 +01:00
..