summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-10-27 19:29:26 +0000
committerTed Trask <ttrask01@yahoo.com>2014-10-27 19:29:26 +0000
commit5ccee3fb707400c32e4fc21809cae2a32331d33a (patch)
tree4a219b7b7fba7b4117c4d8baf802107e93c12bc0
parenta0e559f5f1ba8e4dc8ed70576a890091488b54ba (diff)
downloadacf-lib-5ccee3fb707400c32e4fc21809cae2a32331d33a.tar.bz2
acf-lib-5ccee3fb707400c32e4fc21809cae2a32331d33a.tar.xz
Add error checking for db database engine
-rw-r--r--db.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/db.lua b/db.lua
index 3236e1a..18af1f3 100644
--- a/db.lua
+++ b/db.lua
@@ -171,6 +171,8 @@ export.listdatabases = function(dbobject)
result[#result+1] = table
end
end
+ else
+ error("Invalid database engine", 0)
end
return result
end