New issue 212: query: improve error message for invalid syntax
https://bitbucket.org/blais/beancount/issues/212/query-improve-error-message-for-invalid
Martin Michlmayr:
I accidentally added a WHERE clause after ORDER BY instead of before and got:
beancount> select date, narration, account, position, cost(sum(position)) WHERE account ~ "Exp" AND currency ~ 'USD' GROUP BY account, date, narration, position AND date > 2014-07-12
ERROR: All non-aggregates must be covered by GROUP-BY clause in aggregate query.
This error message doesn't make sense since all non-aggregates are covered.