mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 17:59:56 +00:00
Log loading errors
This commit is contained in:
parent
9598b26462
commit
0d523c3793
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,8 @@
|
|||
#include <QVBoxLayout>
|
||||
|
||||
#include <apps/opencs/model/world/data.hpp>
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
#include <components/files/qtconversion.hpp>
|
||||
|
||||
#include <filesystem>
|
||||
|
@ -121,6 +123,7 @@ void CSVDoc::LoadingDocument::abort(const std::string& error)
|
|||
{
|
||||
mAborted = true;
|
||||
mError->setText(QString::fromUtf8(("<font color=red>Loading failed: " + error + "</font>").c_str()));
|
||||
Log(Debug::Error) << "Loading failed: " << error;
|
||||
mButtons->setStandardButtons(QDialogButtonBox::Close);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue