From fdf8e8a3b42c96bda07d3958378ff6736f90de79 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 29 Dec 2015 22:47:07 -0500 Subject: utility: account for non-existing translation units (currently silent). --- src/apimagic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apimagic.c b/src/apimagic.c index 4522e73..6c6408c 100644 --- a/src/apimagic.c +++ b/src/apimagic.c @@ -50,7 +50,8 @@ int apimagic_main(int argc, const char ** argv, const char ** envp) apimagic_perform_unit_actions(uctx); ret += uctx->nerrors; amgc_free_unit_ctx(uctx); - } + } else + ret++; } return apimagic_exit(dctx,ret); -- cgit v1.2.3