throws

Bun

Symbol

$.ShellPromise.throws

throws(shouldThrow: boolean): this

Configure whether or not the shell should throw an exception on non-zero exit codes.

By default, this is configured to true.