From 1a76852d74c0ea7d8b60c0168594471f63ccda6c Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 12 Feb 2020 12:40:26 +0000 Subject: [PATCH] altos: Prefix an error to provide more context --- plugins/altos/fu-altos-device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/altos/fu-altos-device.c b/plugins/altos/fu-altos-device.c index 58d7be244..ff8c40224 100644 --- a/plugins/altos/fu-altos-device.c +++ b/plugins/altos/fu-altos-device.c @@ -462,8 +462,10 @@ fu_altos_device_probe_bootloader (FuAltosDevice *self, GError **error) if (!fu_altos_device_tty_write (self, "v\n", -1, error)) return FALSE; str = fu_altos_device_tty_read (self, 100, -1, error); - if (str == NULL) + if (str == NULL) { + g_prefix_error (error, "failed to get version information: "); return FALSE; + } /* parse each line */ lines = g_strsplit_set (str->str, "\n\r", -1);