diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 395e937de..5f02aa06a 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