Describe the bug
Calling exec.exec(some_command, some_args, {cwd: <bad-path>} ends up throwing an error that says #[error]There was an error when attempting to execute the process '/bin/<some_command>'. This may indicate the process failed to start. Error: spawn /bin/<some-command> ENOENT. I assume the ENOENT is because of the missing directory, but it seems like it's the binary command that's actually missing.
To Reproduce
Steps to reproduce the behavior:
- Add
await exec.exec("ls", "-Fla", { cwd: "/bad/path" }); to an action that's using @actions/exec
- Run the action, and see
::error::There was an error when attempting to execute the process '/bin/ls'. This may indicate the process failed to start. Error: spawn /bin/ls ENOENT in the log output
Expected behavior
An error message along the lines of Setting working directory to "/bad/path" which does not exist would be more user friendly
Describe the bug
Calling
exec.exec(some_command, some_args, {cwd: <bad-path>}ends up throwing an error that says#[error]There was an error when attempting to execute the process '/bin/<some_command>'. This may indicate the process failed to start. Error: spawn /bin/<some-command> ENOENT. I assume the ENOENT is because of the missing directory, but it seems like it's the binary command that's actually missing.To Reproduce
Steps to reproduce the behavior:
await exec.exec("ls", "-Fla", { cwd: "/bad/path" });to an action that's using@actions/exec::error::There was an error when attempting to execute the process '/bin/ls'. This may indicate the process failed to start. Error: spawn /bin/ls ENOENTin the log outputExpected behavior
An error message along the lines of
Setting working directory to "/bad/path" which does not existwould be more user friendly