lib/api/util.js
function jobBuildNotFoundError(name, buildNumber) {
  return function (result, cb) {
    cb(new Error(text.__('Job %s build %d does not exist', name, buildNumber)));
  };
}
function jobBuildNotFoundError(name, buildNumber) {
  return function (result, cb) {
    cb(new Error(text.__('Job %s build %d does not exist', name, buildNumber)));
  };
}
function jobBuildNotFoundError ( name , buildNumber ) { return function ( result , cb ) { cb ( new Error ( text . __ ( 'Job %s build %d does not exist' , name , buildNumber ) ) ) ; } ; }
Create a 'job or build not found' error handler function.

@param {String} name: the job name
@param {Number} buildNumber: the job's build number
@return a handler function
Create a job or build not found error handler function .