Skip to content

Commit

Permalink
Fix(doError): Fixed missing options (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Sep 27, 2017
1 parent b51a986 commit 65516ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion requestbin.js
Expand Up @@ -24,11 +24,12 @@ var config = {
* @param {string} msg Error message
* @param {mixed} err Error details
* @param {object} res httpreq response
* @param {object} options request options
* @param {function} callback `(err)`
* @return {void}
*/

function doError (msg, err, res, callback) {
function doError (msg, err, res, options, callback) {
var error = new Error (msg);

error.httpCode = res && res.statusCode || null;
Expand Down

0 comments on commit 65516ab

Please sign in to comment.