From e3423b4298d150ba470278105146765beff09cb4 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Sun, 18 Feb 2018 18:39:07 +0100 Subject: [PATCH] Core/DBUpdater: Improve message when base SQL file is missing --- src/server/database/Updater/DBUpdater.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/server/database/Updater/DBUpdater.cpp b/src/server/database/Updater/DBUpdater.cpp index 3d3576d9866..6922be3688e 100644 --- a/src/server/database/Updater/DBUpdater.cpp +++ b/src/server/database/Updater/DBUpdater.cpp @@ -287,10 +287,12 @@ bool DBUpdater::Populate(DatabaseWorkerPool& 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://t.me/trinitycorelegacy\"" \ " Mirror: \"https://github.com/TrinityCoreLegacy/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()); - break; + " uncompress it and place the file \"%s\" in the directory \"%s\".", filename, filename, workdir); + break; } } return false;