mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: Improve postcss error handling (#31420)
Followup to 087e8e4bdb53f71930ec5c930c463c37dd2bd58d - Fixes the variable-prefixer so it doesn't explode when the input is unparseable - Add URL polyfills so that postcss can print its errors properly - Catch postcss errors in the same way as sass errors
This commit is contained in:
@ -49,7 +49,7 @@ class Stylesheet::Manager::Builder
|
||||
load_paths: load_paths,
|
||||
dark: @dark,
|
||||
)
|
||||
rescue SassC::SyntaxError, SassC::NotRenderedError => e
|
||||
rescue SassC::SyntaxError, SassC::NotRenderedError, DiscourseJsProcessor::TranspileError => e
|
||||
if Stylesheet::Importer::THEME_TARGETS.include?(@target.to_s)
|
||||
# no special errors for theme, handled in theme editor
|
||||
["", nil]
|
||||
|
Reference in New Issue
Block a user