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:
parent
59cc8c6c7b
commit
8f444a908e
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue