mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
fix(JavaChecker): show process start error string
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit 8de7aa2b17)
This commit is contained in:
parent
ef2ebf0894
commit
152a52aeaa
1 changed files with 9 additions and 2 deletions
|
|
@ -179,13 +179,20 @@ void JavaChecker::finished(int exitcode, QProcess::ExitStatus status)
|
|||
void JavaChecker::error(QProcess::ProcessError err)
|
||||
{
|
||||
if (err == QProcess::FailedToStart) {
|
||||
qDebug() << "Java checker has failed to start.";
|
||||
qDebug() << "Java checker has failed to start:" << process->errorString();
|
||||
qDebug() << "Process environment:";
|
||||
qDebug() << process->environment();
|
||||
qDebug() << "Native environment:";
|
||||
qDebug() << QProcessEnvironment::systemEnvironment().toStringList();
|
||||
killTimer.stop();
|
||||
emit checkFinished({ m_path, m_id });
|
||||
|
||||
Result result = {
|
||||
m_path,
|
||||
m_id,
|
||||
};
|
||||
result.errorLog = process->errorString();
|
||||
result.validity = Result::Validity::Errored;
|
||||
emit checkFinished(result);
|
||||
}
|
||||
emitSucceeded();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue