code: def _triage_error(self, e, nofail):
          
          if not nofail:
              self.fail_pipeline(e)
          elif self._failed:
              print("This is a nofail process, but the pipeline was terminated for other reasons, so we fail.")
              raise e
          else:
              print(e)
              print("ERROR: Subprocess returned nonzero result, but pipeline is continuing because nofail=True")
docs: Print a message and decide what to do about an error.