Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix error call in httpRequestWrapper

  • Loading branch information...
commit ab3a997c130988e09f83aee335725537f9af6bb5 1 parent 655e2fb
@tedeh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/utils.js
View
2  lib/utils.js
@@ -132,7 +132,7 @@ Utils.httpRequestWrapper = function(server, options) {
if(response) {
var body = '';
// stringifies JSON
- try { body = JSON.stringify(response, options.replacer); } catch(err) { return next(err); }
+ try { body = JSON.stringify(response, options.replacer); } catch(err) { return error(err, 400); }
var headers = {
"content-length": Buffer.byteLength(body, options.encoding),
"content-type": "application/json"
Please sign in to comment.
Something went wrong with that request. Please try again.