summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
authorKylie McClain <kylie@somasis.com>2016-11-01 22:48:45 -0400
committermidipix <writeonce@midipix.org>2016-11-01 23:53:05 -0400
commit7ce25c2d6605d10466a9e8d8742fe1ed5e231709 (patch)
tree65172148197a052f12b4be4ec2996a650d7d2e7d /src/logic/slbt_exec_link.c
parent4a7f9941e0b15da74e7ff81a4092169396ae8f61 (diff)
downloadslibtool-7ce25c2d6605d10466a9e8d8742fe1ed5e231709.tar.bz2
slibtool-7ce25c2d6605d10466a9e8d8742fe1ed5e231709.tar.xz
error trace: use descriptive errcodes for invocations of SLBT_CUSTOM_ERROR.
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index bd29ee0..6e3268d 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -479,7 +479,7 @@ static int slbt_exec_link_adjust_argument_vector(
} else if (freqd) {
free(depsmeta->altv);
free(depsmeta->args);
- return SLBT_CUSTOM_ERROR(dctx,0);
+ return SLBT_CUSTOM_ERROR(dctx,SLBT_ERR_LINK_FREQ);
}
}
}
@@ -719,7 +719,7 @@ static int slbt_exec_link_create_import_library(
/* libfoo.so.def is under .libs/ */
if (!(slash = strrchr(deffilename,'/')))
- return SLBT_CUSTOM_ERROR(dctx,0);
+ return SLBT_CUSTOM_ERROR(dctx,SLBT_ERR_LINK_FLOW);
if (slbt_create_symlink(
dctx,ectx,
@@ -730,7 +730,7 @@ static int slbt_exec_link_create_import_library(
/* libfoo.so.def.{flavor} is under .libs/ */
if (!(slash = strrchr(hosttag,'/')))
- return SLBT_CUSTOM_ERROR(dctx,0);
+ return SLBT_CUSTOM_ERROR(dctx,SLBT_ERR_LINK_FLOW);
if (slbt_create_symlink(
dctx,ectx,