summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-08-23 08:58:14 +0200
committerDaniel Lange <DLange@git.local>2021-08-23 08:58:14 +0200
commit35d94a5ae5c167c74c42452c8c0d4729c5b3f337 (patch)
tree8010667629efd7e5f3214a80437192f03dfe7612
parent4b59a2e6b7997dcd35097cbdef9d80873a23f263 (diff)
Apply approved warning message suggested by nathans
-rw-r--r--Settings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Settings.c b/Settings.c
index 8fb79877..99c9538a 100644
--- a/Settings.c
+++ b/Settings.c
@@ -169,10 +169,10 @@ static bool Settings_read(Settings* this, const char* fileName, unsigned int ini
if (String_eq(option[0], "config_reader_min_version")) {
this->config_version = atoi(option[1]);
if (this->config_version > CONFIG_READER_MIN_VERSION) {
- // the version of the config file on disk is newer than what we can read
- fprintf(stderr, "WARNING: The config file %s requires support for a newer format (v%d) than what this version of htop can read (v%d).\n", fileName, this->config_version, CONFIG_READER_MIN_VERSION);
- fprintf(stderr, " It will be overwritten when this version of htop exits.\n");
- return false;
+ // the version of the config file on disk is newer than what we can read
+ fprintf(stderr, "WARNING: %s specifies configuration format version v%d, but this %s binary supports up to v%d.", fileName, this->config_version, PACKAGE, CONFIG_READER_MIN_VERSION);
+ fprintf(stderr, " The configuration version will be downgraded to v%d when %s exits.\n", CONFIG_READER_MIN_VERSION, PACKAGE);
+ return false;
}
} else if (String_eq(option[0], "fields")) {
Settings_readFields(this, option[1]);

© 2014-2024 Faster IT GmbH | imprint | privacy policy