summaryrefslogtreecommitdiff
path: root/src/settings/plugins/keyfile/nm-keyfile-connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/plugins/keyfile/nm-keyfile-connection.c')
-rw-r--r--src/settings/plugins/keyfile/nm-keyfile-connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/plugins/keyfile/nm-keyfile-connection.c b/src/settings/plugins/keyfile/nm-keyfile-connection.c
index c078b6de09..661b6745e0 100644
--- a/src/settings/plugins/keyfile/nm-keyfile-connection.c
+++ b/src/settings/plugins/keyfile/nm-keyfile-connection.c
@@ -63,7 +63,7 @@ nm_keyfile_connection_new (NMConnection *source,
uuid = nm_connection_get_uuid (NM_CONNECTION (tmp));
if (!uuid) {
- g_set_error (error, KEYFILE_PLUGIN_ERROR, 0,
+ g_set_error (error, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_INVALID_CONNECTION,
"Connection in file %s had no UUID", full_path);
g_object_unref (tmp);
return NULL;