summaryrefslogtreecommitdiff
path: root/src/driver/slbt_driver_ctx.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/driver/slbt_driver_ctx.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/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 6b2cfaa..81a34ac 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -1199,7 +1199,7 @@ int slbt_set_alternate_host(
&ictx->ctx.cctx.ahost,
&ictx->ctx.cctx.acfgmeta)) {
slbt_free_host_params(&ictx->ctx.ahost);
- return SLBT_CUSTOM_ERROR(ctx,0);
+ return SLBT_CUSTOM_ERROR(ctx,SLBT_ERR_HOST_INIT);
}
slbt_init_flavor_settings(
@@ -1211,7 +1211,7 @@ int slbt_set_alternate_host(
&ictx->ctx.cctx,
&ictx->ctx.cctx.ahost)) {
slbt_free_host_params(&ictx->ctx.ahost);
- return SLBT_CUSTOM_ERROR(ctx,0);
+ return SLBT_CUSTOM_ERROR(ctx,SLBT_ERR_LDRPATH_INIT);
}
return 0;