From 7ce25c2d6605d10466a9e8d8742fe1ed5e231709 Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Tue, 1 Nov 2016 22:48:45 -0400 Subject: error trace: use descriptive errcodes for invocations of SLBT_CUSTOM_ERROR. --- src/logic/slbt_exec_link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/logic/slbt_exec_link.c') 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, -- cgit v1.2.3