Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Show filename with error if transform fails #15

Merged
merged 1 commit into from

2 participants

@mrjoes

I'm not sure if this is proper way to fix the issue, but browserify core does not trigger 'error' callbacks if transformer fails.

@mrjoes mrjoes Show filename with error if transform fails
I'm not sure if this is proper way to fix the issue, but browserify core does not trigger 'error' callbacks if transformer fails.
f49aa17
@ericclemmons ericclemmons merged commit f49aa17 into ericclemmons:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 30, 2013
  1. @mrjoes

    Show filename with error if transform fails

    mrjoes authored
    I'm not sure if this is proper way to fix the issue, but browserify core does not trigger 'error' callbacks if transformer fails.
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/transformers.js
View
7 lib/transformers.js
@@ -20,7 +20,12 @@ Transformers.browserify = function(file) {
return through(function(data) {
source += data;
}, function() {
- this.queue(Transformers.source(source));
+ try {
+ this.queue(Transformers.source(source));
+ } catch (e) {
+ console.log('File:', file);
+ throw e;
+ }
this.queue(null);
});
};
Something went wrong with that request. Please try again.