From 33a02b12239a9dd1ee6e41ab4de07a544c7aa6ae Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 9 May 2024 18:34:32 +0100 Subject: Require a reason when throwing an exception. --- modules/redis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/redis.cpp') diff --git a/modules/redis.cpp b/modules/redis.cpp index 4e006c9ff..fbaa3bff5 100644 --- a/modules/redis.cpp +++ b/modules/redis.cpp @@ -237,7 +237,7 @@ public: void StartTransaction() override { if (in_transaction) - throw CoreException(); + throw ModuleException("Tried to start a transaction while one was already in progress"); this->SendCommand(NULL, "MULTI"); in_transaction = true; -- cgit