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 <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-10-20 12:17:46 -04:00
parent 59cc8c6c7b
commit 8f444a908e
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class ShellCommand:
await asyncio.sleep(.5) await asyncio.sleep(.5)
self.factory.remove_running_command(self) self.factory.remove_running_command(self)
raise ShellCommandError( raise ShellCommandError(
f"Error running shell command: '{self.command}'", f"Error running shell command: '{self.name}'",
self.return_code, stdout, stderr) self.return_code, stdout, stderr)
async def _create_subprocess(self, async def _create_subprocess(self,