lib/errors.js
function JavaScriptFileLoadError(file, nestedError){
  nestedError = nestedError || null;

  var message = (nestedError)?
        util.format('"%s" failed to load as JavaScript; VM error: %s', file, nestedError.toString()) :
        util.format('"%s" failed to load as JavaScript.', file);

  superError.call(this, 'JavaScriptFileLoadError', message);

  this.fsPath = file;
  this.nestedError = nestedError;
}
function JavaScriptFileLoadError(file, nestedError){
  nestedError = nestedError || null;

  var message = (nestedError)?
        util.format('"%s" failed to load as JavaScript; VM error: %s', file, nestedError.toString()) :
        util.format('"%s" failed to load as JavaScript.', file);

  superError.call(this, 'JavaScriptFileLoadError', message);

  this.fsPath = file;
  this.nestedError = nestedError;
}
function JavaScriptFileLoadError ( file , nestedError ) { nestedError = nestedError || null ; var message = ( nestedError ) ? util . format ( '"%s" failed to load as JavaScript; VM error: %s' , file , nestedError . toString ( ) ) : util . format ( '"%s" failed to load as JavaScript.' , file ) ; superError . call ( this , 'JavaScriptFileLoadError' , message ) ; this . fsPath = file ; this . nestedError = nestedError ; }
Failed to load the JavaScript file.
@param file {String} path to file
@param nestedError {Error} nested error from VM.
@constructor
Failed to load the JavaScript file .