[Pkg-javascript-commits] [node-module-deps] 202/444: propagate errors correctly

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:55 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 15a2bc7016183b29b31ae8c8bc8c82c761ff0ee3
Author: James Halliday <mail at substack.net>
Date:   Fri May 9 01:01:42 2014 -0700

    propagate errors correctly
---
 index.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/index.js b/index.js
index 9ea5930..5b447d3 100644
--- a/index.js
+++ b/index.js
@@ -201,6 +201,7 @@ Deps.prototype.getTransforms = function (file, pkg) {
         }
         else {
             loadTransform(tr, trOpts, function (err, trs) {
+                if (err) return cb(err);
                 self.emit('transform', t, file);
                 cb(null, trs);
             });

-- 
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