mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 22:47:32 +00:00
altos: Prefix an error to provide more context
This commit is contained in:
parent
f0eeceb9e9
commit
1a76852d74
@ -462,8 +462,10 @@ fu_altos_device_probe_bootloader (FuAltosDevice *self, GError **error)
|
|||||||
if (!fu_altos_device_tty_write (self, "v\n", -1, error))
|
if (!fu_altos_device_tty_write (self, "v\n", -1, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
str = fu_altos_device_tty_read (self, 100, -1, error);
|
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;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* parse each line */
|
/* parse each line */
|
||||||
lines = g_strsplit_set (str->str, "\n\r", -1);
|
lines = g_strsplit_set (str->str, "\n\r", -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user