npkgz / gulp-prettyerror

:hash: Display Errors in a pretty way, without breaking watch tasks
https://www.npmjs.com/package/gulp-prettyerror
MIT License
14 stars 1 forks source link

Doesn't show the relative path where the gulp task breaks. #6

Closed muddlebee closed 7 years ago

AndiDittrich commented 7 years ago

Right, it shows the absolute path - what's wrong with that ?

Screenshot

muddlebee commented 7 years ago

@AndiDittrich it doesn't when I used the plugin in one project ? any help here ?

AndiDittrich commented 7 years ago

could you please post a simple example ? does it output nothing or only "Build Error in <pluginname>"

muddlebee commented 7 years ago

[21:17:52] |- Build Error in gulp-uglify [21:17:52] |- unable to minify JavaScript

that's pretty much it . not compatible with gulp-uglify plugin I guess ?

AndiDittrich commented 7 years ago

gulp-uglify right ? i can reproduce the issue - currently gulp-prettyerror is only using the codeFrame object to display additional data, but gulp-uglify throws a JS_Parse_Error

i will add an additional output handler to show up such errors - thank you for reporting it!

AndiDittrich commented 7 years ago

Please try the latest version from GitHub - it should look like this in case error.cause object is provided (e.g. gulp-uglify)

gulp-prettyerror-uglifyjs

muddlebee commented 7 years ago

Thanks @AndiDittrich