summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-02 23:48:18 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-02 23:48:18 +0200
commit8e9d5f56b592fd0dd0f54e747a835391a775120d (patch)
tree9dc8caadb0867dfd1de1aee6563e8974d5fa921f /logic
parent5779ffd6645ba3fae5abe068d456fc1ee9dd91ff (diff)
downloadMultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.tar
MultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.tar.gz
MultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.tar.lz
MultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.tar.xz
MultiMC-8e9d5f56b592fd0dd0f54e747a835391a775120d.zip
GH-933 map exit code -1 to 'crashed'
Diffstat (limited to 'logic')
-rw-r--r--logic/BaseProcess.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/logic/BaseProcess.cpp b/logic/BaseProcess.cpp
index 749efe0a..f1dc89c7 100644
--- a/logic/BaseProcess.cpp
+++ b/logic/BaseProcess.cpp
@@ -254,7 +254,10 @@ void BaseProcess::finish(int code, ExitStatus status)
else
{
//: Message displayed on instance crashed
- emit log(tr("Game crashed with exitcode %1.").arg(code));
+ if(code == -1)
+ emit log(tr("Game crashed.").arg(code));
+ else
+ emit log(tr("Game crashed with exitcode %1.").arg(code));
}
}
else