Core/DBUpdater: Improve message when base SQL file is missing

This commit is contained in:
DDuarte
2017-04-18 21:20:46 +01:00
parent a39cec29a3
commit 844755aa07
+3 -1
View File
@@ -319,8 +319,10 @@ bool DBUpdater<T>::Populate(DatabaseWorkerPool<T>& pool)
}
case LOCATION_DOWNLOAD:
{
std::string filename = base.filename().generic_string().c_str();
std::string 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 in your worldserver directory.", base.filename().generic_string().c_str());
" uncompress it and place the file \"%s\" in the directory \"%s\".", filename, filename, workdir);
break;
}
}