ericclemmons / grunt-angular-templates

Grunt build task to concatenate & pre-load your AngularJS templates
MIT License
710 stars 107 forks source link

Use `grunt.log.error` on error, not `grutn.warn` #106

Closed mgol closed 8 years ago

mgol commented 10 years ago

The compiler minify function uses grunt.warn on error: https://github.com/ericclemmons/grunt-angular-templates/blob/9aa6b9e1c36fd2beb48cafc0504215909e8398c1/tasks/lib/compiler.js#L121 This makes it extremely hard to find the cause of the issue if html minifier fails.

Please change it to error instead of warn so that stack trace is exposed.