Catch CSS parsing errors to simplify debugging
olabiniV2 opened this issue · comments
Ola Bini commented
We use CSS all over the gui package, but we don't really notice if something goes wrong when loading the CSS. In order to get helpful information, the GTK CssProvider actually has a signal that we can listen to, which notifies about CSS parsing issues. We should implement this signal in ALL places where we load CSS and make sure we log parsing errors.
Ola Bini commented
Instead of using the signal, we do this easier by simply keeping track of the return error from the LoadFromData, and then log this.