mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 10:18:33 +00:00
trivial: Include the filename in the error when fwupd.conf is not found
This can happen if the user deletes it from /etc or is running inside a prefix shell, e.g. jhbuild.
This commit is contained in:
parent
9b614b5017
commit
2d32b8f0e9
@ -1152,8 +1152,10 @@ fu_util_download_metadata (FuUtilPrivate *priv, GError **error)
|
|||||||
/* read config file */
|
/* read config file */
|
||||||
config = g_key_file_new ();
|
config = g_key_file_new ();
|
||||||
config_fn = g_build_filename (SYSCONFDIR, "fwupd.conf", NULL);
|
config_fn = g_build_filename (SYSCONFDIR, "fwupd.conf", NULL);
|
||||||
if (!g_key_file_load_from_file (config, config_fn, G_KEY_FILE_NONE, error))
|
if (!g_key_file_load_from_file (config, config_fn, G_KEY_FILE_NONE, error)) {
|
||||||
|
g_prefix_error (error, "Failed to load %s: ", config_fn);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* download the signature */
|
/* download the signature */
|
||||||
data_uri = g_key_file_get_string (config, "fwupd", "DownloadURI", error);
|
data_uri = g_key_file_get_string (config, "fwupd", "DownloadURI", error);
|
||||||
|
Loading…
Reference in New Issue
Block a user