@@ -8,7 +8,6 @@ var Bluebird = require('bluebird'),
isString=require('lodash/lang/isString'),
isString=require('lodash/lang/isString'),
isUndefined=require('lodash/lang/isUndefined'),
isUndefined=require('lodash/lang/isUndefined'),
keys=require('lodash/object/keys'),
keys=require('lodash/object/keys'),
chalk=require('chalk'),
errors=require('./errors.js');
errors=require('./errors.js');
@@ -123,8 +122,7 @@ function expose(methodToExpose, exposeAs) {
/* istanbul ignore if */
/* istanbul ignore if */
if (!isUndefined(request.Request.prototype[exposeAs])){
if (!isUndefined(request.Request.prototype[exposeAs])){
console.error(chalk.bold.bgRed('[Request-Promise] Unable to expose method "'+exposeAs+'". It is already implemented by Request. Please visit https://github.com/request/request-promise/wiki/Troubleshooting'));
thrownewError('[Request-Promise] Unable to expose method "'+exposeAs+'". It is already implemented by Request. Please visit https://github.com/request/request-promise/wiki/Troubleshooting');