summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-17 16:18:55 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-17 16:18:55 +0100
commit2b31b3f1342d591cdf69860f633914e950d764f5 (patch)
tree7dfbd8595259ada42cfeaca60c9790538940de91
parentaef6b23a4a5b0a37a8a5801c61ee31f360a29088 (diff)
downloadlace-2b31b3f1342d591cdf69860f633914e950d764f5.tar.gz
ENGINE: Now not possible to have no result
-rw-r--r--lib/lace/engine.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/lace/engine.lua b/lib/lace/engine.lua
index 8e93ae0..dcf8a68 100644
--- a/lib/lace/engine.lua
+++ b/lib/lace/engine.lua
@@ -68,11 +68,7 @@ local function run_ruleset(ruleset, exec_context)
return nil, ret
end
- if ret == "" then
- -- Empty string indicates no error but no result, we don't like
- -- that here so we return an error
- return false, "Ruleset did not explicitly allow or deny"
- end
+ assert(ret ~= "", "It should not be possible for a ruleset to fail to return a result")
if type(msg) == "table" then
-- TODO: Extract position information etc from error and