1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00

Log loading errors

This commit is contained in:
elsid 2023-03-08 01:02:39 +01:00
parent 9598b26462
commit 0d523c3793
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -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);
}