Fixed message when the configuration file is missing.
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 7 Sep 2014 16:12:41 +0000 (18:12 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 7 Sep 2014 16:12:41 +0000 (18:12 +0200)
NEWS
NEWS.html
src/cfg.c

diff --git a/NEWS b/NEWS
index e2af3a5..a67d829 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ v1.1.2
 * Fixed graph enabled setting not saved when toggle in the list of
   sensors.
 * Added NVidia GPU graphics, memory, PCIe and video usage.
+* Fixed message when the configuration file is missing.
 
 v1.1.1
 ------
index 0676b05..08d8bdd 100644 (file)
--- a/NEWS.html
+++ b/NEWS.html
@@ -389,6 +389,38 @@ asciidoc.install();
 Fixed missing description in psensor manpage.\r
 </p>\r
 </li>\r
+<li>\r
+<p>\r
+All mouse buttons can be used to raise color settings in the list of\r
+  sensors.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+All mouse buttons can be used to popup menu in the list of sensors.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+List of sensors UI defined in glade file instead of code.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+Fixed graph enabled setting not saved when toggle in the list of\r
+  sensors.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+Added NVidia GPU graphics, memory, PCIe and video usage.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+Fixed message when the configuration file is missing.\r
+</p>\r
+</li>\r
 </ul></div>\r
 </div>\r
 </div>\r
@@ -2741,7 +2773,7 @@ Fixed BR1: crash when no temperature sensor is available
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2014-09-01 17:47:05 CEST\r
+Last updated 2014-09-07 11:48:04 CEST\r
 </div>\r
 </div>\r
 </body>\r
index 8f22975..6a7ce1b 100644 (file)
--- a/src/cfg.c
+++ b/src/cfg.c
@@ -537,15 +537,10 @@ static GKeyFile *get_sensor_key_file()
                                                | G_KEY_FILE_KEEP_TRANSLATIONS,
                                                &err);
 
-               if (!ret) {
-                       if (err->code == G_KEY_FILE_ERROR_NOT_FOUND)
-                               log_fct(_("The configuration file "
-                                         "does not exist."));
-                       else
-                               log_err(_("Failed to parse configuration "
-                                         "file: %s"),
-                                       path);
-               }
+               if (!ret)
+                       log_warn(_("Failed to load configuration file %s: %s"),
+                                path,
+                                err->message);
        }
 
        return key_file;