mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03:00
[math] Better error for 2 + 2 4
This now reports "TOO_MANY_ARGS" instead of no error (and triggering an assertion). We might want to add a new error type or report the missing operator before, but this is okay for now.
This commit is contained in:
@@ -19,3 +19,6 @@ math: Error: Expression is bogus
|
||||
math: Error: Too few arguments
|
||||
'sin()'
|
||||
^
|
||||
math: Error: Too many arguments
|
||||
'2 + 2 4'
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user