[Pkg-javascript-commits] [node-module-deps] 225/444: remove early error

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:58 UTC 2017


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

rouca pushed a commit to branch master
in repository node-module-deps.

commit 4f88e1c6ec9b7b1d3e3507ed1e933204ee5c76b7
Author: James Halliday <mail at substack.net>
Date:   Sat May 10 00:06:39 2014 -0700

    remove early error
---
 index.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 5371006..6dae0b3 100644
--- a/index.js
+++ b/index.js
@@ -333,9 +333,8 @@ Deps.prototype.parseDeps = function (file, src, cb) {
     
     try { var deps = detective(src) }
     catch (ex) {
-        return 
         var message = ex && ex.message ? ex.message : ex;
-        return output.emit('error', new Error(
+        return self.emit('error', new Error(
             'Parsing file ' + file + ': ' + message
         ));
     }

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



More information about the Pkg-javascript-commits mailing list