From bc7c7ab4dc83544d515dad9f83b287e26f429b23 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 9 Feb 2018 04:27:24 +0000 Subject: [PATCH] added some error messsages --- hcl/lib/hcl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hcl/lib/hcl.c b/hcl/lib/hcl.c index 07b64de..cd960ed 100644 --- a/hcl/lib/hcl.c +++ b/hcl/lib/hcl.c @@ -624,7 +624,7 @@ int hcl_importmod (hcl_t* hcl, const hcl_ooch_t* name, hcl_oow_t len) HCL_ASSERT (hcl, mdp != HCL_NULL); HCL_DEBUG1 (hcl, "Cannot import module [%js] - already active\n", mdp->mod.name); - hcl_seterrnum (hcl, HCL_EPERM); + hcl_seterrbfmt (hcl, HCL_EPERM, "unable to import module [%js] - already active", mdp->mod.name); goto done2; } @@ -634,7 +634,7 @@ int hcl_importmod (hcl_t* hcl, const hcl_ooch_t* name, hcl_oow_t len) if (!mdp->mod.import) { HCL_DEBUG1 (hcl, "Cannot import module [%js] - importing not supported by the module\n", mdp->mod.name); - hcl_seterrnum (hcl, HCL_ENOIMPL); + hcl_seterrbfmt (hcl, HCL_ENOIMPL, "unable to import module [%js] - not supported by the module", mdp->mod.name); goto done; }