jetpack
jetpack copied to clipboard
Custom CSS: Sass and Less compilers do not report exceptions
When the compiler fails, the try/catch statement simply returns the posted value, but never mentions that it didn't work out.
- https://github.com/Automattic/jetpack/blob/3.0.2/modules%2Fcustom-css%2Fcustom-css%2Fpreprocessors.php#L40
- https://github.com/Automattic/jetpack/blob/3.0.2/modules%2Fcustom-css%2Fcustom-css%2Fpreprocessors.php#L52
Reported in 1899410-t
What's the desired way to handle the exceptions? Should the user be notified?
Yes, it'd be nice if a warning was displayed that the changes weren't applied.
Another vote from a WP.com VIP customer; they'd like to see the Sass error output.
#4649-wpcom
Closing this for now because of the lack of activity on this. We can always reopen in the future if needed.