2createStudio / postcss-sprites

Generate sprites from stylesheets.
MIT License
413 stars 50 forks source link

Ensure an error is thrown on failure. #41

Closed msecret closed 8 years ago

msecret commented 8 years ago

In debugging the program I found that errors were being swallowed by promises. This commit should report the error to the console and throw it by attaching a catch to the main promise chain.

I also added a test to examples, not sure if it's the best place to put it, open to recommendations.

More informaton can be found here: https://github.com/2createStudio/postcss-sprites/issues/40