Skip to content

Commit 339d21f

Browse files
authored
ref: Use named function for middlewares (#429)
1 parent db857f9 commit 339d21f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ extend(Raven.prototype, {
532532

533533
requestHandler: function() {
534534
var self = this;
535-
return function ravenMiddleware(req, res, next) {
535+
return function ravenRequestMiddleware(req, res, next) {
536536
self.context({req: req}, function() {
537537
domain.active.add(req);
538538
domain.active.add(res);
@@ -543,7 +543,7 @@ extend(Raven.prototype, {
543543

544544
errorHandler: function() {
545545
var self = this;
546-
return function(err, req, res, next) {
546+
return function ravenErrorMiddleware(err, req, res, next) {
547547
var status =
548548
err.status ||
549549
err.statusCode ||

0 commit comments

Comments
 (0)