mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-09-15 07:34:54 -04:00
fix(JavaChecker): show process start error string
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
1 file changed
+9
-2
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user