summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-03 04:27:16 -0400
committermidipix <writeonce@midipix.org>2016-09-03 23:23:27 -0400
commit42595b7487283f3a069ded8eb45876f30663fbd0 (patch)
tree12e1e6b943bcda418c361a4a8e309e6055c4d671 /src
parent8a1d14646afb1a62f18edd9f85f61dfba48dcf31 (diff)
downloadslibtool-42595b7487283f3a069ded8eb45876f30663fbd0.tar.bz2
slibtool-42595b7487283f3a069ded8eb45876f30663fbd0.tar.xz
slbt_copy_file(): added error trace support.
Diffstat (limited to 'src')
-rw-r--r--src/helper/slbt_copy_file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/helper/slbt_copy_file.c b/src/helper/slbt_copy_file.c
index 94b2cd0..5448fd6 100644
--- a/src/helper/slbt_copy_file.c
+++ b/src/helper/slbt_copy_file.c
@@ -6,6 +6,7 @@
#include <slibtool/slibtool.h>
#include "slibtool_spawn_impl.h"
+#include "slibtool_errinfo_impl.h"
int slbt_copy_file(
const struct slbt_driver_ctx * dctx,
@@ -36,20 +37,20 @@ int slbt_copy_file(
if (slbt_output_link(dctx,ectx)) {
ectx->argv = oargv;
ectx->program = oprogram;
- return -1;
+ return SLBT_NESTED_ERROR(dctx);
}
} else {
if (slbt_output_install(dctx,ectx)) {
ectx->argv = oargv;
ectx->program = oprogram;
- return -1;
+ return SLBT_NESTED_ERROR(dctx);
}
}
}
/* dlltool spawn */
ret = ((slbt_spawn(ectx,true) < 0) || ectx->exitcode)
- ? -1 : 0;
+ ? SLBT_SYSTEM_ERROR(dctx) : 0;
ectx->argv = oargv;
ectx->program = oprogram;