[Pkg-javascript-commits] [node-static] 100/151: added return statement

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:18:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository node-static.

commit 02827061a7e0dade05bf69ad850d6c48fdab7822
Author: Guy Bedford <guybedford at gmail.com>
Date:   Wed Jan 30 12:14:00 2013 +0200

    added return statement
---
 lib/node-static.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/node-static.js b/lib/node-static.js
index ba06a72..5708bc3 100644
--- a/lib/node-static.js
+++ b/lib/node-static.js
@@ -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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-static.git



More information about the Pkg-javascript-commits mailing list