From 42d807ece6886df1bdeef1cda48c37a345295a99 Mon Sep 17 00:00:00 2001 From: xeals Date: Wed, 26 Apr 2023 17:20:17 +1000 Subject: [PATCH] fix error forwarding --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 68cc4ed..5c37a0a 100755 --- a/bot.py +++ b/bot.py @@ -87,7 +87,7 @@ class BotClient(discord.Client): ["node", "calc_main.js", "--"] + args, stdout=sp.PIPE, stderr=sp.PIPE ) if proc.returncode != 0: - _log.error(f"running calculator: {proc.stderr}") + raise Error(proc.stderr.decode()) return proc.stdout.decode() def is_replay(self, message: discord.Message) -> bool: