Add error message for network and device storing failures
[connman] / src / network.c
index 85b601d..f5e512e 100644 (file)
@@ -1281,7 +1281,8 @@ update:
 
        data = g_key_file_to_data(keyfile, &length, NULL);
 
-       g_file_set_contents(pathname, data, length, NULL);
+       if (g_file_set_contents(pathname, data, length, NULL) == FALSE)
+               connman_error("Failed to store network information");
 
 done:
        g_free(data);