summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/slibtool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slibtool.c b/src/slibtool.c
index bc3584b..42d604f 100644
--- a/src/slibtool.c
+++ b/src/slibtool.c
@@ -67,6 +67,9 @@ static void slibtool_perform_unit_actions(struct slbt_unit_ctx * uctx)
static int slibtool_exit(struct slbt_driver_ctx * dctx, int nerrors)
{
+ if (nerrors && errno)
+ strerror(errno);
+
slbt_free_driver_ctx(dctx);
return nerrors ? 2 : 0;
}