From ddc40ab595caf67d4ce6b17447dcc8b85389cb1b Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 6 May 2021 16:57:15 +0100 Subject: [PATCH] fastboot: Add some trivial error prefix for the getvar failure --- plugins/fastboot/fu-fastboot-device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/fastboot/fu-fastboot-device.c b/plugins/fastboot/fu-fastboot-device.c index 799e19763..50feec544 100644 --- a/plugins/fastboot/fu-fastboot-device.c +++ b/plugins/fastboot/fu-fastboot-device.c @@ -243,8 +243,10 @@ fu_fastboot_device_getvar (FuDevice *device, const gchar *key, gchar **str, GErr if (!fu_fastboot_device_writestr (device, tmp, error)) return FALSE; if (!fu_fastboot_device_read (device, str, - FU_FASTBOOT_DEVICE_READ_FLAG_NONE, error)) + FU_FASTBOOT_DEVICE_READ_FLAG_NONE, error)) { + g_prefix_error (error, "failed to getvar %s: ", key); return FALSE; + } return TRUE; }