diff options
author | click <none@none> | 2010-07-29 09:00:55 +0200 |
---|---|---|
committer | click <none@none> | 2010-07-29 09:00:55 +0200 |
commit | 969bf213b8b4a18f74e5e6e303c820d7167445f4 (patch) | |
tree | 2e3863350e0655cb697246035502d8d58c65b83d /src/server/authserver/Main.cpp | |
parent | 09728dd491775134b49737a148d0b35019f898da (diff) |
Fix windows-build and change some warnings if configuration-files can not be read properly
- Add proper warning about missing [authserver] -tag in authserver configuration file if not found.
- Add proper warning about missing [worldserver] -tag in worldserver configuration file if not found.
Thanks to Qaston for finding the redefininition of strdup!
--HG--
branch : trunk
Diffstat (limited to 'src/server/authserver/Main.cpp')
-rw-r--r-- | src/server/authserver/Main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/authserver/Main.cpp b/src/server/authserver/Main.cpp index 3954b3fa4c8..95dfb854b5e 100644 --- a/src/server/authserver/Main.cpp +++ b/src/server/authserver/Main.cpp @@ -165,7 +165,8 @@ extern int main(int argc, char **argv) if (!sConfig.SetSource(cfg_file)) { - sLog.outError("Could not find configuration file %s.", cfg_file); + sLog.outError("\x1b[31mInvalid or missing configuration file :\x1b[0m %s", cfg_file); + sLog.outError("\x1b[31mVerify that the file exists and has \'\x1b[0m[authserver]\x1b[31m\' written in the top of the file!\x1b[0m"); return 1; } sLog.Initialize(); |