mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-09 04:40:06 +00:00
fpi-device: Add more specific debug info for usb errors
This commit is contained in:
committed by
Marco Trevisan
parent
91012c3690
commit
1b589a9245
@@ -68,6 +68,8 @@ error_to_string (GError * error)
|
||||
domain_str = g_enum_to_string (FP_TYPE_DEVICE_ERROR, error->code);
|
||||
else if (error->domain == G_IO_ERROR)
|
||||
domain_str = g_enum_to_string (g_io_error_enum_get_type (), error->code);
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user