mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 17:45:23 +00:00
trivial: Be more helpful when failing to detect the firmware kind
This commit is contained in:
parent
fb049f75b7
commit
0023912e1c
@ -667,10 +667,13 @@ fu_rom_load_data (FuRom *rom,
|
|||||||
|
|
||||||
/* nothing */
|
/* nothing */
|
||||||
if (priv->kind == FU_ROM_KIND_UNKNOWN) {
|
if (priv->kind == FU_ROM_KIND_UNKNOWN) {
|
||||||
g_set_error_literal (error,
|
g_autofree gchar *str = NULL;
|
||||||
|
str = fu_rom_get_hex_dump (buffer + hdr_sz, 0x32);
|
||||||
|
g_set_error (error,
|
||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
FWUPD_ERROR_INVALID_FILE,
|
FWUPD_ERROR_INVALID_FILE,
|
||||||
"Failed to detect firmware kind");
|
"Failed to detect firmware kind from [%s]",
|
||||||
|
str);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user