# HG changeset patch # User Matthew Wild # Date 1539281746 -3600 # Node ID c03c60a2dedef1893376a5659c8ff49bacb22c1d # Parent 89e4cbd1a5647d0e181f8a84d4b4e0f03ca55dd7 mod_storage_sql: Have :users() throw an error on failure instead of returning non-iterator values diff -r 89e4cbd1a564 -r c03c60a2dede plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Fri Oct 12 03:43:56 2018 +0200 +++ b/plugins/mod_storage_sql.lua Thu Oct 11 19:15:46 2018 +0100 @@ -142,7 +142,7 @@ ]]; 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