GH-933 map exit code -1 to 'crashed'

This commit is contained in:
Petr Mrázek 2015-05-02 23:48:18 +02:00
parent 5779ffd664
commit 8e9d5f56b5

View File

@ -254,6 +254,9 @@ void BaseProcess::finish(int code, ExitStatus status)
else else
{ {
//: Message displayed on instance crashed //: Message displayed on instance crashed
if(code == -1)
emit log(tr("Game crashed.").arg(code));
else
emit log(tr("Game crashed with exitcode %1.").arg(code)); emit log(tr("Game crashed with exitcode %1.").arg(code));
} }
} }