Mcatch
Bun

method

child_process.PromiseWithChild.catch

catch<TResult = never>(
onrejected?: null | (reason: any) => TResult | PromiseLike<TResult>
): Promise<T | TResult>;

Attaches a callback for only the rejection of the Promise.

@param onrejected

The callback to execute when the Promise is rejected.

@returns

A Promise for the completion of the callback.