summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-07-19 16:38:09 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-21 17:58:19 +0200
commit40772daaf4d241a71f6eba5190cf8cd03d028880 (patch)
treee4b027270636913b06918ff1accb85d6451035d0 /src
parent6377582841118688aee13aff98c9216403582e45 (diff)
downloadcalcurse-40772daaf4d241a71f6eba5190cf8cd03d028880.zip
Add hint to error messages in custom_load_conf()
Include the name of the configuration variable that issued the error in error messages that are thrown while parsing the configuration file. This makes it a lot easier to locate syntactic and semantic errors. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r--src/custom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/custom.c b/src/custom.c
index 8404ae1..747d4d8 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -408,7 +408,7 @@ custom_load_conf (struct conf *conf)
if (var == CUSTOM_CONF_INVALID)
{
- EXIT (_("configuration variable unknown"));
+ EXIT (_("configuration variable unknown: \"%s\""), name);
/* NOTREACHED */
}
@@ -423,7 +423,7 @@ custom_load_conf (struct conf *conf)
if (!val || !custom_set_conf (conf, var, val))
{
- EXIT (_("wrong configuration variable format."));
+ EXIT (_("wrong configuration variable format for \"%s\""), name);
/* NOTREACHED */
}
}