summaryrefslogtreecommitdiff
path: root/modules/redis.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-05-09 18:34:32 +0100
committerSadie Powell <sadie@witchery.services>2024-05-09 18:37:16 +0100
commit33a02b12239a9dd1ee6e41ab4de07a544c7aa6ae (patch)
treefb93d5e649c276b41ccb58751c4a195aeebcb2df /modules/redis.cpp
parent68f4556609569a33c4fcf1bf67402db292d4bdeb (diff)
Require a reason when throwing an exception.
Diffstat (limited to 'modules/redis.cpp')
-rw-r--r--modules/redis.cpp2
1 files changed, 1 insertions, 1 deletions
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;