Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

improve invalid response object error message

  • Loading branch information...
commit a09cc44d1f7ee383d0cbc2d0202cee4bf1ea44d6 1 parent ce5b587
William Skinner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/middleware/bodyAdapter.js
View
2  lib/middleware/bodyAdapter.js
@@ -21,7 +21,7 @@ module.exports = middleware(function (req, nextApp) {
}
var searchFriendlyErrorCode = 'BODY_ADAPTER_BAD_RESPONSE_BODY';
- var reason = 'Middleware error: bodyAdapter found response body that does not have a forEach method, is not a Buffer, and is not a readable Stream.';
+ var reason = 'Middleware error: The response object returned by your route handler for "'+req.pathInfo+'" is not a proper bogart JSGI response. It does not have a forEach method, is not a Buffer, and is not a readable Stream';
throw new Error(reason + ' ' + searchFriendlyErrorCode);
});
Please sign in to comment.
Something went wrong with that request. Please try again.