lib/client.js
function(options) {
      if (!_.isString(options.method)) {
        throw new Error('"method" must be a string, got ' + options.method);
      } else if (!_.isString(options.url)) {
        throw new Error('"url" must be a string, got ' + options.url);
      }

      return options;
    }
function(options) {
      if (!_.isString(options.method)) {
        throw new Error('"method" must be a string, got ' + options.method);
      } else if (!_.isString(options.url)) {
        throw new Error('"url" must be a string, got ' + options.url);
      }

      return options;
    }
function ( options ) { if ( ! _ . isString ( options . method ) ) { throw new Error ( '"method" must be a string, got ' + options . method ) ; } else if ( ! _ . isString ( options . url ) ) { throw new Error ( '"url" must be a string, got ' + options . url ) ; } return options ; }
An error is thrown if either the `method` or the `url` option is not a string. Note that this error is caught by the promise chain and causes the returned promise to be rejected.
An error is thrown if either the method or the url option is not a string . Note that this error is caught by the promise chain and causes the returned promise to be rejected .