mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 02:40:34 +00:00
fastboot: Add some trivial error prefix for the getvar failure
This commit is contained in:
parent
dbd57ebc43
commit
ddc40ab595
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user