diff options
| author | Joshua Mark Manton <joshuamarkk@gmail.com> | 2018-05-17 02:08:04 -0700 |
|---|---|---|
| committer | Joshua Mark Manton <joshuamarkk@gmail.com> | 2018-05-17 02:08:04 -0700 |
| commit | 1ee4f849cb8e517c2390db0d53792397e404b529 (patch) | |
| tree | a1326b5427178d2df4ea4929aa5d01979dfd6bd5 /src/main.cpp | |
| parent | 703393fc634317fef38587f096199e5eb46f2d0e (diff) | |
now return 1 if there were errors
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5760a3c42..a3fc783a7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -162,7 +162,7 @@ void usage(String argv0) { print_usage_line(0, "Commands:"); print_usage_line(1, "build compile .odin file as executable"); print_usage_line(1, "run compile and run .odin file"); - print_usage_line(1, "check parse and typecheck .odin file"); + print_usage_line(1, "check parse and type check .odin file"); print_usage_line(1, "docs generate documentation for a .odin file"); print_usage_line(1, "version print version"); } @@ -808,6 +808,10 @@ int main(int arg_count, char **arg_ptr) { show_timings(&checker, &timings); } + if (global_error_collector.count != 0) { + return 1; + } + return 0; } |