Output stdout/stderr of failed process on error
chrahunt opened this issue · comments
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.