zaphar / ucg

A Universal Configuration Grammar
Apache License 2.0
36 stars 3 forks source link

`ucg fmt` exits with a zero status when it can't parse the input #50

Closed durin42 closed 5 years ago

durin42 commented 5 years ago

eg

let foo = [{ bar = "baz"}};

correctly prints

ParseError: Expected Expression to bind at <eval> line: 1, column: 11
Caused By:
    ParseError: Expected (]) but got (}) at <eval> line: 1, column: 26

but the exit status is 0. ucg build gets the exit status right, but I didn't check other commands.