diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-03-18 15:02:54 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-03-26 17:05:27 +0100 |
commit | b7d8e512f4184a755809fe9a964a04921f8abf7c (patch) | |
tree | 2d67f30a2c57743dac5fc9dc819e6c5d58b41962 /logic/minecraft/forge/ForgeInstaller.cpp | |
parent | fb9dfcb951d9cf9c19fc868703cb66e15aa9a1e6 (diff) | |
download | MultiMC-b7d8e512f4184a755809fe9a964a04921f8abf7c.tar MultiMC-b7d8e512f4184a755809fe9a964a04921f8abf7c.tar.gz MultiMC-b7d8e512f4184a755809fe9a964a04921f8abf7c.tar.lz MultiMC-b7d8e512f4184a755809fe9a964a04921f8abf7c.tar.xz MultiMC-b7d8e512f4184a755809fe9a964a04921f8abf7c.zip |
NOISSUE Use patch problems and problem levels instead of exceptions for minecraft profiles.
Diffstat (limited to 'logic/minecraft/forge/ForgeInstaller.cpp')
-rw-r--r-- | logic/minecraft/forge/ForgeInstaller.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/logic/minecraft/forge/ForgeInstaller.cpp b/logic/minecraft/forge/ForgeInstaller.cpp index 9ed040de..86ba6176 100644 --- a/logic/minecraft/forge/ForgeInstaller.cpp +++ b/logic/minecraft/forge/ForgeInstaller.cpp @@ -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; } |