NOISSUE Use patch problems and problem levels instead of exceptions for minecraft profiles.
This commit is contained in:
parent
fb9dfcb951
commit
b7d8e512f4
10 changed files with 172 additions and 147 deletions
|
@ -82,6 +82,17 @@ void ForgeInstaller::prepare(const QString &filename, const QString &universalUr
|
|||
}
|
||||
catch(Exception &err)
|
||||
{
|
||||
qWarning() << "Forge: Fatal error while parsing version file:" << err.what();
|
||||
return;
|
||||
}
|
||||
|
||||
for(auto problem: newVersion->getProblems())
|
||||
{
|
||||
qWarning() << "Forge: Problem found: " << problem.getDescription();
|
||||
}
|
||||
if(newVersion->getProblemSeverity() == ProblemSeverity::PROBLEM_ERROR)
|
||||
{
|
||||
qWarning() << "Forge: Errors found while parsing version file";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue