tasks/lib/run.js
function(r, callback) {
      result = r || {};

      RunUtil.displayScriptData(grunt, result);
      RunUtil.displayScriptOutput(grunt, outputs, result);

      try {
        RunUtil.checkRunScriptResult(result, method);
      } catch(e) {
        CommonUtil.header(grunt, 'VALIDATION:', 'red');
        grunt.fail.fatal(e);
      }
      callback();
    }
function(r, callback) {
      result = r || {};

      RunUtil.displayScriptData(grunt, result);
      RunUtil.displayScriptOutput(grunt, outputs, result);

      try {
        RunUtil.checkRunScriptResult(result, method);
      } catch(e) {
        CommonUtil.header(grunt, 'VALIDATION:', 'red');
        grunt.fail.fatal(e);
      }
      callback();
    }
function ( r , callback ) { result = r || { } ; RunUtil . displayScriptData ( grunt , result ) ; RunUtil . displayScriptOutput ( grunt , outputs , result ) ; try { RunUtil . checkRunScriptResult ( result , method ) ; } catch ( e ) { CommonUtil . header ( grunt , 'VALIDATION:' , 'red' ) ; grunt . fail . fatal ( e ) ; } callback ( ) ; }
validation and output
validation and output