From 8f444a908e642e710d2e72de81f96b6112924029 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Thu, 20 Oct 2022 12:17:46 -0400 Subject: [PATCH] shell_command: error message fix Use the original command in the message rather than the list generated by shlex.split(). Signed-off-by: Eric Callahan --- moonraker/components/shell_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/shell_command.py b/moonraker/components/shell_command.py index 43ae920..4ace134 100644 --- a/moonraker/components/shell_command.py +++ b/moonraker/components/shell_command.py @@ -265,7 +265,7 @@ class ShellCommand: await asyncio.sleep(.5) self.factory.remove_running_command(self) raise ShellCommandError( - f"Error running shell command: '{self.command}'", + f"Error running shell command: '{self.name}'", self.return_code, stdout, stderr) async def _create_subprocess(self,