summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-02 15:55:52 -0400
committermidipix <writeonce@midipix.org>2016-09-03 23:23:18 -0400
commit3d54f34316385e007fa78451e714e751e648dc27 (patch)
tree86655e3ae1edadce5a6913dc51f83c452e0e6303 /src
parent08246dc7c823af1e76f3c0acbfb8b87dae41b17e (diff)
downloadslibtool-3d54f34316385e007fa78451e714e751e648dc27.tar.bz2
slibtool-3d54f34316385e007fa78451e714e751e648dc27.tar.xz
slbt_create_default_object_wrapper(): added error trace support.
Diffstat (limited to 'src')
-rw-r--r--src/internal/slibtool_objmeta_impl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/internal/slibtool_objmeta_impl.c b/src/internal/slibtool_objmeta_impl.c
index e37d1eb..9e9cc75 100644
--- a/src/internal/slibtool_objmeta_impl.c
+++ b/src/internal/slibtool_objmeta_impl.c
@@ -6,6 +6,7 @@
#include <stdio.h>
#include <slibtool/slibtool.h>
+#include "slibtool_errinfo_impl.h"
#include "slibtool_metafile_impl.h"
static int slbt_create_default_object_wrapper(
@@ -17,7 +18,7 @@ static int slbt_create_default_object_wrapper(
const struct slbt_source_version * verinfo;
if (!(fout = fopen(ectx->ltobjname,"w")))
- return -1;
+ return SLBT_SYSTEM_ERROR(dctx);
verinfo = slbt_source_version();
@@ -41,7 +42,8 @@ static int slbt_create_default_object_wrapper(
: "none");
return (ret <= 0) || fclose(fout)
- ? -1 : 0;
+ ? SLBT_SYSTEM_ERROR(dctx)
+ : 0;
}
static int slbt_create_compatible_object_wrapper(