aboutsummaryrefslogtreecommitdiffstats
path: root/copilot.moon
diff options
context:
space:
mode:
Diffstat (limited to 'copilot.moon')
-rw-r--r--copilot.moon4
1 files changed, 3 insertions, 1 deletions
diff --git a/copilot.moon b/copilot.moon
index 1791174..6d8d977 100644
--- a/copilot.moon
+++ b/copilot.moon
@@ -23,7 +23,9 @@ class Copilot
patch: =>
ast = L\try "error parsing:", parse, slurp @file
- return unless ast
+ if not ast
+ L\error "error parsing"
+ return
scope = Scope ast, globals
root = L\try "error evaluating:", ast\eval, scope, @registry