From a47c7a49974f17bf83932ab21ae4c644c30bde62 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 2 Sep 2016 16:27:16 -0400 Subject: execute mode: added error trace support. --- src/logic/slbt_exec_execute.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/logic/slbt_exec_execute.c b/src/logic/slbt_exec_execute.c index 277bb30..2b422d2 100644 --- a/src/logic/slbt_exec_execute.c +++ b/src/logic/slbt_exec_execute.c @@ -12,6 +12,7 @@ #include #include "slibtool_spawn_impl.h" +#include "slibtool_errinfo_impl.h" int slbt_exec_execute( const struct slbt_driver_ctx * dctx, @@ -50,7 +51,7 @@ int slbt_exec_execute( script) >= sizeof(wrapper)) { slbt_free_exec_ctx(actx); - return -1; + return SLBT_BUFFER_ERROR(dctx); } /* exeref */ @@ -76,11 +77,11 @@ int slbt_exec_execute( if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) if (slbt_output_execute(dctx,ectx)) { slbt_free_exec_ctx(actx); - return -1; + return SLBT_NESTED_ERROR(dctx); } execvp(wrapper,ectx->argv); slbt_free_exec_ctx(actx); - return -1; + return SLBT_SYSTEM_ERROR(dctx); } -- cgit v1.2.3