lib/decider/version.js
function handleFailure(err) {
    // Respond back to SWF failing the workflow
    winston.log('error', 'An problem occured in the execution of workflow: %s, failing due to: ', self.name, err.stack);
    decisionTask.response.fail('Workflow failed', err, function (err) {
      if (err) {
        winston.log('error', 'Unable to mark workflow: %s as failed due to: %s', self.name, JSON.stringify(err));
        return;
      }
    });
  }
function handleFailure(err) {
    // Respond back to SWF failing the workflow
    winston.log('error', 'An problem occured in the execution of workflow: %s, failing due to: ', self.name, err.stack);
    decisionTask.response.fail('Workflow failed', err, function (err) {
      if (err) {
        winston.log('error', 'Unable to mark workflow: %s as failed due to: %s', self.name, JSON.stringify(err));
        return;
      }
    });
  }
function handleFailure ( err ) { // Respond back to SWF failing the workflow winston . log ( 'error' , 'An problem occured in the execution of workflow: %s, failing due to: ' , self . name , err . stack ) ; decisionTask . response . fail ( 'Workflow failed' , err , function ( err ) { if ( err ) { winston . log ( 'error' , 'Unable to mark workflow: %s as failed due to: %s' , self . name , JSON . stringify ( err ) ) ; return ; } } ) ; }
When something goes wrong and we can't make a decision
When something goes wrong and we can t make a decision