diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-10-11 19:15:46 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-10-11 19:15:46 +0100 |
commit | 23fd5679ed5e182b05cba815d1fb2e2cbd6959b4 (patch) | |
tree | d4330eaba675c306f91f51be0cd8baa110e692e2 /plugins | |
parent | 398ce8fac621cc1a2e1cc18381079612e56ea19b (diff) | |
download | prosody-23fd5679ed5e182b05cba815d1fb2e2cbd6959b4.tar.gz prosody-23fd5679ed5e182b05cba815d1fb2e2cbd6959b4.zip |
mod_storage_sql: Have :users() throw an error on failure instead of returning non-iterator values
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_storage_sql.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 395e937d..5f02aa06 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -142,7 +142,7 @@ function keyval_store:users() ]]; return engine:select(select_sql, host, self.store); end); - if not ok then return ok, result end + if not ok then error(result); end return iterator(result); end |