mod_storage_sql: Have :users() throw an error on failure instead of returning non-iterator values

This commit is contained in:
Matthew Wild 2018-10-11 19:15:46 +01:00
parent 93aa49462f
commit 9423dbfdb3

View file

@ -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