Skip to content

By default, print out debug information when error was encountered #282

@krzkaczor

Description

@krzkaczor

Simple code such:

await $`false`;

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):
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions