Improve reporting of version file errors.x

This commit is contained in:
Petr Mrázek
2014-03-09 23:42:25 +01:00
parent ffff2cd324
commit b2c803a378
12 changed files with 204 additions and 128 deletions

View File

@@ -9,7 +9,7 @@ public:
MMCError(QString cause)
{
exceptionCause = cause;
QLOG_ERROR() << errorName() + ": " + cause;
QLOG_ERROR() << "Exception: " + cause;
};
virtual ~MMCError(){};
virtual const char *what() const noexcept
@@ -20,10 +20,6 @@ public:
{
return exceptionCause;
}
virtual QString errorName()
{
return "MultiMC Error";
}
private:
QString exceptionCause;
};
};