jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Custom CSS: Sass and Less compilers do not report exceptions

Open jeherve opened this issue 12 years ago • 4 comments

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

jeherve avatar Jul 25 '14 11:07 jeherve

What's the desired way to handle the exceptions? Should the user be notified?

enkrates avatar Aug 06 '14 21:08 enkrates

Yes, it'd be nice if a warning was displayed that the changes weren't applied.

jeherve avatar Aug 06 '14 21:08 jeherve

Another vote from a WP.com VIP customer; they'd like to see the Sass error output.

#4649-wpcom

lancewillett avatar Aug 21 '14 06:08 lancewillett

Closing this for now because of the lack of activity on this. We can always reopen in the future if needed.

jeherve avatar Mar 15 '17 11:03 jeherve