aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-12 15:03:45 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:23:21 +0000
commitdea6a3962e492bed1e2e264230d049fd330d5914 (patch)
treeec653cc7d34384fe6b91c362f6a0b9fabd8806da
parentbase.match: match constants as sigs (diff)
downloadalive-dea6a3962e492bed1e2e264230d049fd330d5914.tar.gz
alive-dea6a3962e492bed1e2e264230d049fd330d5914.zip
report errors when requiring lua modules
-rw-r--r--alv/copilot.moon2
1 files changed, 2 insertions, 0 deletions
diff --git a/alv/copilot.moon b/alv/copilot.moon
index e6eb293..709a2c3 100644
--- a/alv/copilot.moon
+++ b/alv/copilot.moon
@@ -47,6 +47,8 @@ class Copilot
ok, lua = pcall require, "alv-lib.#{name}"
if ok
RTNode result: Constant.wrap lua
+ elseif not lua\match "not found"
+ error lua
else
assert @modules, "no current eval cycle?"
if mod = @modules[name]