code: function INVALID_SCOPE_VARIABLE(varname, details, message) {
      let DEFAULT_MESSAGE =
          'Issue encountered in generator "ember-rest":\n' +
          'Missing required scope variable: `%s`"\n' +
          'If you are the author of `sails-ember-rest`, please resolve this ' +
          'issue and publish a new patch release.';
  
      message = (message || DEFAULT_MESSAGE) + (details ? '\n' + details : '');
      message = util.inspect(message, varname);
  
      return new Error(message);
  }
docs: INVALID_SCOPE_VARIABLE()
  
  Helper method to put together a nice error about a missing or invalid
  scope variable. We should always validate any required scope variables
  to avoid inadvertently smashing someone's filesystem.
  
  @param {String} varname [the name of the missing/invalid scope variable]
  @param {String} details [optional - additional details to display on the console]
  @param {String} message [optional - override for the default message]
  @return {Error}
  @api private