diff options
author | DDuarte <dnpd.dd@gmail.com> | 2017-04-18 21:20:46 +0100 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2018-02-18 16:23:47 +0000 |
commit | 3945a010d2b920f147021d98776bafaadfe1f773 (patch) | |
tree | 681a22e8f9b2b74df75d57886bf3fb43a64f5886 | |
parent | e482d9f303c73e86df49b1943122a70418cfef27 (diff) |
Core/DBUpdater: Improve message when base SQL file is missing
(cherry picked from commit 844755aa07b4a7f9f2f0c49f351a817198c9a56a)
GCC build fix
(cherry picked from commit a15985edc620d2ecbd9a44f13f6fec15e13b338d)
-rw-r--r-- | src/server/database/Updater/DBUpdater.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/database/Updater/DBUpdater.cpp b/src/server/database/Updater/DBUpdater.cpp index 428c84be08d..15e86109c81 100644 --- a/src/server/database/Updater/DBUpdater.cpp +++ b/src/server/database/Updater/DBUpdater.cpp @@ -282,8 +282,10 @@ bool DBUpdater<T>::Populate(DatabaseWorkerPool<T>& pool) } case LOCATION_DOWNLOAD: { + const char* filename = base.filename().generic_string().c_str(); + const char* workdir = boost::filesystem::current_path().generic_string().c_str(); TC_LOG_ERROR("sql.updates", ">> File \"%s\" is missing, download it from \"https://github.com/TrinityCore/TrinityCore/releases\"" \ - " uncompress it and place the file TDB_full_world_(a_variable_name).sql where your worldserver binary is located.", base.filename().generic_string().c_str()); + " uncompress it and place the file \"%s\" in the directory \"%s\".", filename, filename, workdir); break; } } |