From 2a6c451dc80e84e0948dfbec73e54fb09426c867 Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Fri, 2 Sep 2016 16:21:11 -0400
Subject: execution context: added error trace support.

---
 src/logic/slbt_exec_ctx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index cc5e9b6..f1b6b75 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -10,6 +10,7 @@
 #include <string.h>
 
 #include <slibtool/slibtool.h>
+#include "slibtool_errinfo_impl.h"
 
 #define SLBT_ARGV_SPARE_PTRS	16
 
@@ -154,7 +155,7 @@ int  slbt_get_exec_ctx(
 
 	/* alloc */
 	if (!(ictx = slbt_exec_ctx_alloc(dctx)))
-		return -1;
+		return SLBT_NESTED_ERROR(dctx);
 
 	/* init with guard for later .lo check */
 	ch                = ictx->args + strlen(".lo");
-- 
cgit v1.2.3