gruntjs / grunt-contrib-sass

Compile Sass to CSS.
http://gruntjs.com/
MIT License
848 stars 141 forks source link

On sass errors continue instead of returning #184

Closed LtSquigs closed 9 years ago

LtSquigs commented 9 years ago

Specifically on this line here https://github.com/gruntjs/grunt-contrib-sass/blob/master/tasks/sass.js#L111

By default Grunt exits the task/application when warn is called, so the return isn't really necessary. Instead this return here breaks anyone trying to use the --force option (or force tasks) with grunt-contrib-sass, because the next() callback is never called.

Suggest changing this to call next() and return instead of simply returning there.