aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-10-11 19:15:46 +0100
committerMatthew Wild <mwild1@gmail.com>2018-10-11 19:15:46 +0100
commit260734d1fc28535c1dd6544292b9a0cdfdc39afc (patch)
treed4330eaba675c306f91f51be0cd8baa110e692e2 /plugins/mod_storage_sql.lua
parentdf4728f164b6e1663694988fc7fcd6cb8322e5ba (diff)
downloadprosody-260734d1fc28535c1dd6544292b9a0cdfdc39afc.tar.gz
prosody-260734d1fc28535c1dd6544292b9a0cdfdc39afc.zip
mod_storage_sql: Have :users() throw an error on failure instead of returning non-iterator values
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r--plugins/mod_storage_sql.lua2
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