eugeneware / debowerify

A browserify transform to enable the easy use of bower components in browserify client javascript projects. This can be used in conjunction with deamdify to require AMD components from bower as well.
491 stars 51 forks source link

Improves error message emitted when there's a problem in debowerify #6

Closed 00dani closed 11 years ago

00dani commented 11 years ago

For some reason, the self reference was previously often undefined in case of errors while browserifying, which meant the error shown to the user was along the lines of "undefined has no method self" instead of the actual cause of problems. Simply referencing tr directly (which is what every other reference to the stream in the file does anyway) seems to correct this.

eugeneware commented 11 years ago

Thanks 00Davo. Weird issue. Merged and published to npm as 0.0.14