Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output stdout/stderr of failed process on error #12

Open
chrahunt opened this issue Sep 28, 2019 · 0 comments
Open

Output stdout/stderr of failed process on error #12

chrahunt opened this issue Sep 28, 2019 · 0 comments

Comments

@chrahunt
Copy link

Currently a command execution failure looks like this:

✖  error     Failed to run command
✖  error     docker run -l wflow --log-driver syslog --log-opt syslog-address=udp://192.168.1.254:1030 -v /tmp/user/1000/wflow/195i4NalWj8FXStw/workspaces/hg5SC7Z9i1gn4asB/code:/code  -v /var/run/docker.sock:/var/run/docker.sock -v /usr/local/bin/docker:/usr/bin/docker  actions/setup-python
✖  error     Error: Command failed with exit code 125 (ECANCELED): docker run -l wflow --log-driver syslog --log-opt syslog-address=udp://192.168.1.254:1030 -v /tmp/user/1000/wflow/195i4NalWj8FXStw/workspaces/hg5SC7Z9i1gn4asB/code:/code -v /var/run/docker.sock:/var/run/docker.sock -v /usr/local/bin/docker:/usr/bin/docker actions/setup-python
    at makeError (/home/chris/repositories/wflow/node_modules/execa/lib/error.js:58:11)
    at handlePromise (/home/chris/repositories/wflow/node_modules/execa/index.js:112:26)
    at process._tickCallback (internal/process/next_tick.js:68:7)

We can always run the command manually to get the output:

docker run -l wflow --log-driver syslog --log-opt syslog-address=udp://192.168.1.254:1030 -v /tmp/user/1000/wflow/195i4NalWj8FXStw/workspaces/hg5SC7Z9i1gn4asB/code:/code -v /var/run/docker.sock:/var/run/docker.sock -v /usr/local/bin/docker:/usr/bin/docker actions/setup-python
Unable to find image 'actions/setup-python:latest' locally
docker: Error response from daemon: pull access denied for actions/setup-python, repository does not exist or may require 'docker login'.
See 'docker run --help'.

If this was included by default in the error output it would aid debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant