trivial: fix error handling for non UEFI case (#1220)

This commit is contained in:
Mario Limonciello 2019-07-11 07:16:03 -05:00 committed by Mario Limonciello
parent 4266ac4765
commit badef4daf3

View File

@ -820,8 +820,10 @@ fu_plugin_coldplug (FuPlugin *plugin, GError **error)
g_autoptr(GPtrArray) entries = NULL;
/* are the EFI dirs set up so we can update each device */
if (!fu_uefi_vars_supported (error))
if (!fu_uefi_vars_supported (&error_local)) {
g_warning ("%s", error_local->message);
return fu_plugin_uefi_create_dummy (plugin, error);
}
/* get the directory of ESRT entries */
sysfsfwdir = fu_common_get_path (FU_PATH_KIND_SYSFSDIR_FW);