slamdata / purescript-quasar

Quasar API library for PureScript
Apache License 2.0
1 stars 7 forks source link

Error format variation - multiple errors #37

Closed garyb closed 7 years ago

garyb commented 7 years ago
{ "error": { "status": "Multiple errors", "detail": { "errors": [ { "status": "Unbound variable.", "detail": { "message": "There is no binding for the variable :fosdg", "varName": "fosdg" } }, { "status": "Unbound variable.", "detail": { "message": "There is no binding for the variable :fsddfg", "varName": "fsddfg" } } ] } } }

We can probably add a new MultipleErrors constructor for this one.

To reproduce:

  1. Add a query with SELECT :foo, :bar where both variables are unbound
  2. See the error on the next card