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,7 +254,10 @@ void BaseProcess::finish(int code, ExitStatus status)
else else
{ {
//: Message displayed on instance crashed //: 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 else