Permalink
Browse files

added return statement

  • Loading branch information...
1 parent c3956d1 commit 02827061a7e0dade05bf69ad850d6c48fdab7822 @guybedford guybedford committed Jan 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/node-static.js
View
@@ -176,7 +176,7 @@ exports.Server.prototype.serve = function (req, res, callback) {
pathname = decodeURI(url.parse(req.url).pathname);
}
catch(e) {
- promise.emit('error', e);
+ return promise.emit('error', e);
}
var finish = function (status, headers) {

0 comments on commit 0282706

Please sign in to comment.