summaryrefslogtreecommitdiff
path: root/lib/lace/error.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lace/error.lua')
-rw-r--r--lib/lace/error.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/lace/error.lua b/lib/lace/error.lua
new file mode 100644
index 0000000..d52da1d
--- /dev/null
+++ b/lib/lace/error.lua
@@ -0,0 +1,16 @@
+-- lib/lace/error.lua
+--
+-- Lua Access Control Engine - Error management
+--
+-- Copyright 2012 Daniel Silverstone <dsilvers@digital-scurf.org>
+--
+-- For licence terms, see COPYING
+--
+
+local function _error(str, words)
+ return false, { msg = str, words = words or {} }
+end
+
+return {
+ error = _error
+} \ No newline at end of file