mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix(LoggedProcess): show process start error string
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
bf8d1ca1f8
commit
6c15077731
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ void LoggedProcess::on_error(QProcess::ProcessError error)
|
||||||
{
|
{
|
||||||
switch (error) {
|
switch (error) {
|
||||||
case QProcess::FailedToStart: {
|
case QProcess::FailedToStart: {
|
||||||
emit log({ tr("The process failed to start.") }, MessageLevel::Fatal);
|
emit log({ tr("The process failed to start: %1").arg(errorString()) }, MessageLevel::Fatal);
|
||||||
changeState(LoggedProcess::FailedToStart);
|
changeState(LoggedProcess::FailedToStart);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue