From 52e4d0d3987adfda291c003b20a7e7ec83b0a554 Mon Sep 17 00:00:00 2001 From: s-ol Date: Tue, 12 May 2020 17:03:45 +0200 Subject: report errors when requiring lua modules --- alv/copilot.moon | 2 ++ 1 file changed, 2 insertions(+) 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] -- cgit v1.2.3