summaryrefslogtreecommitdiff
path: root/lib/lace/engine.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lace/engine.lua')
-rw-r--r--lib/lace/engine.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/lace/engine.lua b/lib/lace/engine.lua
index b72db5f..8e93ae0 100644
--- a/lib/lace/engine.lua
+++ b/lib/lace/engine.lua
@@ -74,6 +74,12 @@ local function run_ruleset(ruleset, exec_context)
return false, "Ruleset did not explicitly allow or deny"
end
+ if type(msg) == "table" then
+ -- TODO: Extract position information etc from error and
+ -- formulate a gorgeous multiline error message.
+ msg = msg.msg or "Empty error"
+ end
+
return ret, msg
end