From bd00edf047f4cf91ea172e74cbae9c38f4ac9fd6 Mon Sep 17 00:00:00 2001 From: Sorin Manolache Date: Thu, 30 Jun 2016 10:24:38 +0200 Subject: [PATCH] hotfix(dao) fix cassandra_db `find_all()` error handling --- kong/dao/cassandra_db.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/dao/cassandra_db.lua b/kong/dao/cassandra_db.lua index 1d8889a609f3..8b9d57acaa18 100644 --- a/kong/dao/cassandra_db.lua +++ b/kong/dao/cassandra_db.lua @@ -249,7 +249,7 @@ function CassandraDB:find_all(table_name, tbl, schema) local res_rows, err = {}, nil for rows, page_err in session:execute(query, args, {auto_paging = true}) do - if err then + if page_err then err = Errors.db(tostring(page_err)) res_rows = nil break