mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Before we send something as "u" down DBus, check that it's not -1, a commonly used error code in libratbag. If so, return a dbus error instead and log where this occured so we can fix it. This should at least help spot these errors quickly while at the same time hopefully not crashing piper anymore. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>