Require this step to fail. A throw, a rejection, and next(err) all satisfy it, and the error is passed on as the next step's input. If the step succeeds, the run fails. Returning an Error as a normal value counts as success, so it fails too.
next(err)
Error
Require this step to fail. A throw, a rejection, and
next(err)all satisfy it, and the error is passed on as the next step's input. If the step succeeds, the run fails. Returning anErroras a normal value counts as success, so it fails too.