From 36bbf8774c5f129b3a571ecc59e1abbf51925604 Mon Sep 17 00:00:00 2001 From: xx Date: Mon, 10 Jun 2024 20:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=9C=AA=E6=8A=9B=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/redis.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/redis.cpp b/src/redis.cpp index 29919e1..339f02f 100644 --- a/src/redis.cpp +++ b/src/redis.cpp @@ -157,7 +157,7 @@ sol::object module::redis_pool::reply(sol::this_state* ts,redisContext* ctx, red catch (const std::exception& e) { freeReplyObject(reply); - throw e; + throw ylib::exception(e.what()); } freeReplyObject(reply); return result; @@ -194,7 +194,6 @@ sol::object module::redis::command(const std::string& cmd, sol::this_state ts) if (m_context->err) { m_context = m_pool->reget(m_context); - reply = (redisReply*)redisCommand(m_context, cmd.c_str()); } else