Simple code such:
Throws totally unhelpful error message like
Uncaught Error: Exited with code: 1
at CommandChild.pipedStdoutBuffer (file:///Users/krzkaczor/Workspace/spark/spark-alm-planner/node_modules/.pnpm/[email protected]/node_modules/dax-sh/esm/mod.js:8625:19)
(often even stack trace is not helpful).
I think the default behaviour should be to throw an error with command name that was executed and at least few final lines of stderr and stdout.
For reference, this is what bun/shell will do (output and error code both parts of the responses):
