From c7ab395ff406fc478595e08168d8b3c7b35a0d09 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 8 Dec 2022 16:24:38 +0000 Subject: [PATCH] Return a more useful error if USB recovery() failed --- libfwupdplugin/fu-device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libfwupdplugin/fu-device.c b/libfwupdplugin/fu-device.c index 5546f1b5b..66620ae1b 100644 --- a/libfwupdplugin/fu-device.c +++ b/libfwupdplugin/fu-device.c @@ -681,10 +681,10 @@ fu_device_retry_full(FuDevice *self, if (!rec->recovery_func(self, user_data, error)) return FALSE; } else { - g_set_error(error, - G_IO_ERROR, - G_IO_ERROR_FAILED, - "device recovery not possible"); + g_propagate_prefixed_error( + error, + g_steal_pointer(&error_local), + "device recovery not possible: "); return FALSE; } }