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

This commit is contained in:
Aokromes
2018-02-18 18:39:07 +01:00
parent 86f03d79cc
commit e3423b4298

View File

@@ -287,10 +287,12 @@ 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://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;