fix(LauncherPartLaunch): show process start error string

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit a90e3d403d)
This commit is contained in:
Octol1ttle 2026-06-10 17:19:55 +05:00 committed by github-actions[bot]
parent 152a52aeaa
commit 37455a8f44

View file

@ -164,9 +164,9 @@ void LauncherPartLaunch::on_state(LoggedProcess::State state)
switch (state) {
case LoggedProcess::FailedToStart: {
//: Error message displayed if instace can't start
const char* reason = QT_TR_NOOP("Could not launch Minecraft!");
emit logLine(reason, MessageLevel::Fatal);
emitFailed(tr(reason));
const char* reason = QT_TR_NOOP("Could not launch Minecraft: %1");
emit logLine(QString(reason).arg(m_process.errorString()), MessageLevel::Fatal);
emitFailed(tr(reason).arg(m_process.errorString()));
return;
}
case LoggedProcess::Aborted: