From 1bfe46b07d42068ae7d0e85455388927d4d3f40c Mon Sep 17 00:00:00 2001 From: TrustyJAID Date: Mon, 20 May 2024 11:57:55 -0600 Subject: [PATCH] [ReTrigger] Improve invalid pattern error message logging --- retrigger/converters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retrigger/converters.py b/retrigger/converters.py index 006df53fd5..2717e395b8 100644 --- a/retrigger/converters.py +++ b/retrigger/converters.py @@ -690,8 +690,8 @@ async def convert(self, ctx: commands.Context, argument: str) -> str: re.compile(argument) result = argument except Exception as e: - log.error("Retrigger conversion error") - err_msg = _("`{arg}` is not a valid regex pattern. {e}").format(arg=argument, e=e) + err_msg = _("`{arg}` is not a valid regex pattern: {e}").format(arg=argument, e=e) + log.error("Retrigger invalid regex error: Pattern %s Reason %s", argument, e) raise BadArgument(err_msg) return result