trivial: Show what the device does support if the protocol match fails

This commit is contained in:
Richard Hughes 2020-10-20 18:21:04 +01:00
parent c3a8173a12
commit d7e3f09cbf

View File

@ -260,9 +260,10 @@ fu_install_task_check_requirements (FuInstallTask *self,
g_set_error (error, g_set_error (error,
FWUPD_ERROR, FWUPD_ERROR,
FWUPD_ERROR_NOT_SUPPORTED, FWUPD_ERROR_NOT_SUPPORTED,
"Device %s doesn't support %s", "Device %s does not support %s, only %s",
fu_device_get_name (self->device), fu_device_get_name (self->device),
protocol); protocol,
fu_device_get_protocol (self->device));
return FALSE; return FALSE;
} }