firasuke / cross / slibtool

Forked from cross/slibtool 6 months ago
Clone

2a6c45 execution context: added error trace support.

Authored and Committed by midipix 8 years ago
    execution context: added error trace support.
    
        
file modified
+2 -1
src/logic/slbt_exec_ctx.c CHANGED
@@ -10,6 +10,7 @@
10
10
#include <string.h>
11
11
12
12
#include <slibtool/slibtool.h>
13
+ #include "slibtool_errinfo_impl.h"
13
14
14
15
#define SLBT_ARGV_SPARE_PTRS 16
15
16
@@ -154,7 +155,7 @@ int slbt_get_exec_ctx(
154
155
155
156
/* alloc */
156
157
if (!(ictx = slbt_exec_ctx_alloc(dctx)))
157
- return -1;
158
+ return SLBT_NESTED_ERROR(dctx);
158
159
159
160
/* init with guard for later .lo check */
160
161
ch = ictx->args + strlen(".lo");