Closed lemonsqueeze closed 7 years ago
Hi,
I noticed the assembler exits with status 0 even in case of error:
$ echo garbage > foo.j $ assemble.py foo.j foo.j:1:1: error: Expected '.class' or '.version'. $ echo $? 0
Maybe we could return non-zero to indicate error ? This would be useful for external tools. For example I have a Makefile rule for assembling .j files, would let make know right away when something fails.
Thanks for writing krakatau, awesome work
Couldn't you just tell by the fact that there is output on stderr? Anyway, I'll look into it.
Usually no problem, but when assembling a thousand classes it's easy to miss one...
Should work now.
Hi,
I noticed the assembler exits with status 0 even in case of error:
Maybe we could return non-zero to indicate error ? This would be useful for external tools. For example I have a Makefile rule for assembling .j files, would let make know right away when something fails.
Thanks for writing krakatau, awesome work