[Pkg-javascript-commits] [node-module-deps] 281/444: expose transform error filename

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:05 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 db73d7f88e0dd0210cd313080b888e809d7c431d
Author: James Halliday <mail at substack.net>
Date:   Thu Jul 24 00:45:22 2014 -0700

    expose transform error filename
---
 index.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/index.js b/index.js
index c96e9a6..b9b6040 100644
--- a/index.js
+++ b/index.js
@@ -175,6 +175,8 @@ Deps.prototype.getTransforms = function (file, pkg) {
     function done () {
         var middle = combine.apply(null, streams);
         middle.on('error', function (err) {
+            err.message += ' while parsing file: ' + file;
+            if (!err.filename) err.filename = file;
             self.emit('error', err);
         });
         input.pipe(middle).pipe(output);

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