Add error message for network and device storing failures
[connman] / src / device.c
index e36aa6d..bb9abf5 100644 (file)
@@ -1913,7 +1913,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 device information");
 
 done:
        g_free(data);