mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-03 13:27:59 +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))
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user