lib/app.js
function handleIntentError(req, res, next, data, intentObj) {
    if (intentObj.hasRawResult()) {
      data.rawData = intentObj.result();
    }
    req.intent = intentObj;
    return handleRequestError.call(this, data, req, res, next);
  }
function handleIntentError(req, res, next, data, intentObj) {
    if (intentObj.hasRawResult()) {
      data.rawData = intentObj.result();
    }
    req.intent = intentObj;
    return handleRequestError.call(this, data, req, res, next);
  }
function handleIntentError ( req , res , next , data , intentObj ) { if ( intentObj . hasRawResult ( ) ) { data . rawData = intentObj . result ( ) ; } req . intent = intentObj ; return handleRequestError . call ( this , data , req , res , next ) ; }
/*
Handles the actual error of the request's result.
TODO: manage the errors with a view error.
/ * Handles the actual error of the request s result . TODO : manage the errors with a view error .