[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] pkl_resolve_module: On failure give a more useful diagnostic
From: |
John Darrington |
Subject: |
[PATCH] pkl_resolve_module: On failure give a more useful diagnostic |
Date: |
Sat, 23 May 2020 06:57:49 +0200 |
---
libpoke/pkl.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/libpoke/pkl.c b/libpoke/pkl.c
index 0ba3946e..91b1f56c 100644
--- a/libpoke/pkl.c
+++ b/libpoke/pkl.c
@@ -673,7 +673,11 @@ pkl_resolve_module (pkl_compiler compiler,
PKL_ENV_NS_MAIN,
"load_path",
&back, &over);
- assert (tmp != NULL);
+ if (tmp == NULL)
+ {
+ fprintf (stderr, "Cannot resolve module %s\n", module);
+ abort ();
+ }
val = pvm_env_lookup (runtime_env, back, over);
assert (val != PVM_NULL);
--
2.20.1
- [PATCH] pkl_resolve_module: On failure give a more useful diagnostic,
John Darrington <=