From 42595b7487283f3a069ded8eb45876f30663fbd0 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 3 Sep 2016 04:27:16 -0400 Subject: slbt_copy_file(): added error trace support. --- src/helper/slbt_copy_file.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/helper/slbt_copy_file.c') 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 #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; -- cgit v1.2.3