sindresorhus / grunt-sass

Compile Sass to CSS
MIT License
1.01k stars 209 forks source link

SASS error triggers UnhandledPromiseRejectionWarning #286

Closed multicam closed 6 years ago

multicam commented 6 years ago

Hi there,

We noticed that sass errors trigger and UnhandledPromiseRejectionWarning and break the grunt flow (it then needs CTRL-C and to be restarted)

Is there a workaround?

Kind regards

node v8.11.2
Running "sass:dist" (sass) task
(node:46708) UnhandledPromiseRejectionWarning: Error: style declaration must contain a value
  at options.error (/Users/JeanMarc/Documents/base/tgds-website/node_modules/node-sass/lib/index.js:291:26)

(node:46708) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:46708) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
multicam commented 6 years ago

No comments?

sindresorhus commented 6 years ago

@multicam It's closed as fixed: https://github.com/sindresorhus/grunt-sass/commits/master

multicam commented 6 years ago

Oh, wow! Thanks