drym-org / qi

An embeddable flow-oriented language.
58 stars 12 forks source link

Error message shows core instead of surface language #134

Open countvajhula opened 8 months ago

countvajhula commented 8 months ago

When we provide two arguments instead of one to a flow, (flow f g):

> ((☯ (~>> (sort <)) 2 1 3))
; flow: Syntax error in (flow (thread (#%blanket-template ((#%host-expression sort) (#%host-expression <) __))) (gen (#%host-expression 2)) (gen (#%host-expression 1)) (gen (#%host-expression 3)))
; Usage:
;   (flow flo)
; flow expects a single flow specification, but it received many.
;   in: (flow (thread (#%blanket-template ((#%host-expression sort) (#%host-expression <) __))) (gen (#%host-expression 2)) (gen (#%host-expression 1)) (gen (#%host-expression 3)))

(i.e. all of the 2 1 3 are provided to flow -- it's a typo / misplaced paren)