From cb6ec2b18e7543a53e3543539ffb4e860ea46a57 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Thu, 7 May 2020 13:02:18 -0500 Subject: [PATCH] trivial: uefi-dbx: correct error message on missing file ``` unset error in plugin uefi_dbx for add_security_attrs() ``` --- plugins/uefi-dbx/fu-plugin-uefi-dbx.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/uefi-dbx/fu-plugin-uefi-dbx.c b/plugins/uefi-dbx/fu-plugin-uefi-dbx.c index f08a69c7c..a2089858d 100644 --- a/plugins/uefi-dbx/fu-plugin-uefi-dbx.c +++ b/plugins/uefi-dbx/fu-plugin-uefi-dbx.c @@ -48,9 +48,11 @@ fu_plugin_startup (FuPlugin *plugin, GError **error) if (data->fn == NULL) { g_autofree gchar *dbxdir = NULL; dbxdir = fu_common_get_path (FU_PATH_KIND_EFIDBXDIR); - g_prefix_error (error, - "file can be downloaded from %s and decompressed into %s: ", - FU_UEFI_DBX_DATA_URL, dbxdir); + g_set_error (error, + FWUPD_ERROR, + FWUPD_ERROR_NOT_SUPPORTED, + "file can be downloaded from %s and decompressed into %s: ", + FU_UEFI_DBX_DATA_URL, dbxdir); return FALSE; }