Permalink
Browse files

typo preventing error response to be sent

  • Loading branch information...
1 parent 47244b4 commit 6f6bb3f89a9a1a288d1742bff90f7f1a561c04a7 @sonnym committed Oct 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/loaders/controller.js
@@ -102,7 +102,7 @@ ControllerLoader.prototype.get = function(opt) {
try {
return controller_instance[action].call(controller_instance);
} catch (e) {
- if (opt.respones) {
+ if (opt.response) {
opt.response.writeHead(500);
opt.response.end(e.message + "\n\n\n" + e.stack);
}

0 comments on commit 6f6bb3f

Please sign in to comment.