From: Jean-Philippe Orsini Date: Sun, 7 Sep 2014 16:12:41 +0000 (+0200) Subject: Fixed message when the configuration file is missing. X-Git-Tag: v1.1.2~130 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=c99f9324d18e175a05878f132f0f230be7595ca9 Fixed message when the configuration file is missing. --- diff --git a/NEWS b/NEWS index e2af3a5..a67d829 100644 --- 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 ------ diff --git a/NEWS.html b/NEWS.html index 0676b05..08d8bdd 100644 --- a/NEWS.html +++ b/NEWS.html @@ -389,6 +389,38 @@ asciidoc.install(); Fixed missing description in psensor manpage.

+
  • +

    +All mouse buttons can be used to raise color settings in the list of + sensors. +

    +
  • +
  • +

    +All mouse buttons can be used to popup menu in the list of sensors. +

    +
  • +
  • +

    +List of sensors UI defined in glade file instead of code. +

    +
  • +
  • +

    +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. +

    +
  • @@ -2741,7 +2773,7 @@ Fixed BR1: crash when no temperature sensor is available

    diff --git a/src/cfg.c b/src/cfg.c index 8f22975..6a7ce1b 100644 --- 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;