diff options
author | Darkvater <darkvater@openttd.org> | 2007-01-09 21:25:13 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2007-01-09 21:25:13 +0000 |
commit | 6c3187213d174617ddbd89b2c70da86f71c5f906 (patch) | |
tree | 275ce019147376c73a22d33b7d42d17f53321b9f /src/settings.c | |
parent | fe1ac3c5d17a2017a92c0661eed136bd8812411e (diff) | |
download | openttd-6c3187213d174617ddbd89b2c70da86f71c5f906.tar.xz |
(svn r8013) -Codechange (r6921, rUnknown): Show the error message of corrupt or missing (own) files
through a ShowInfo(F). This way windows users also see this message and bugs such as
FS#528 will not happen anymore. Put ShowInfo(F) error output to stderr and not stdout.
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.c b/src/settings.c index b6d7fa895..2f509768f 100644 --- a/src/settings.c +++ b/src/settings.c @@ -247,7 +247,7 @@ static IniFile *ini_load(const char *filename) // it's a group? if (s[0] == '[') { if (e[-1] != ']') { - ShowInfoF("ini: invalid group name '%s'\n", buffer); + ShowInfoF("ini: invalid group name '%s'", buffer); } else { e--; } @@ -282,7 +282,7 @@ static IniFile *ini_load(const char *filename) item->value = pool_strdup(&ini->pool, t, e - t); } else { // it's an orphan item - ShowInfoF("ini: '%s' outside of group\n", buffer); + ShowInfoF("ini: '%s' outside of group", buffer); } } |