mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 22:27:38 +03:00
mod_storage_sql: Have :users() throw an error on failure instead of returning non-iterator values
This commit is contained in:
parent
93aa49462f
commit
9423dbfdb3
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ function keyval_store:users()
|
||||||
]];
|
]];
|
||||||
return engine:select(select_sql, host, self.store);
|
return engine:select(select_sql, host, self.store);
|
||||||
end);
|
end);
|
||||||
if not ok then return ok, result end
|
if not ok then error(result); end
|
||||||
return iterator(result);
|
return iterator(result);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue