mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-09 04:40:06 +00:00
fpi-device: Use the error quark string to debug unknown error domains
This commit is contained in:
committed by
Marco Trevisan
parent
1b589a9245
commit
de5d539b50
@@ -71,7 +71,9 @@ error_to_string (GError * error)
|
||||
else if (error->domain == G_USB_DEVICE_ERROR)
|
||||
domain_str = g_strdup_printf ("G_USB_DEVICE_ERROR_%u", error->code);
|
||||
else
|
||||
domain_str = g_strdup_printf ("UNKNOWN_ERROR_%u", error->domain);
|
||||
domain_str = g_strdup_printf ("%s_%u",
|
||||
g_quark_to_string (error->domain),
|
||||
error->code);
|
||||
|
||||
return g_strdup_printf ("[%s] %s", domain_str, error->message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user