aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-12 15:03:45 +0000
committers-ol <s-ol@users.noreply.github.com>2020-05-12 15:03:45 +0000
commit52e4d0d3987adfda291c003b20a7e7ec83b0a554 (patch)
tree78cbb076bd037368bd5e44b6ee34339f7181dfe2
parentbase.match: match constants as sigs (diff)
downloadalive-52e4d0d3987adfda291c003b20a7e7ec83b0a554.tar.gz
alive-52e4d0d3987adfda291c003b20a7e7ec83b0a554.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]