projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed message when the configuration file is missing.
[psensor.git]
/
src
/
cfg.c
diff --git
a/src/cfg.c
b/src/cfg.c
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);
| 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;
}
return key_file;