coyim / coyim

coyim - a safe and secure chat client

Home Page:https://coy.im

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catch CSS parsing errors to simplify debugging

olabiniV2 opened this issue · comments

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.

Instead of using the signal, we do this easier by simply keeping track of the return error from the LoadFromData, and then log this.