Check for build process exit status and display log link in more cases.

Signed-off-by: AMZN-Phil <pconroy@amazon.com>
monroegm-disable-blank-issue-2
AMZN-Phil 4 years ago
parent 5b8b51924a
commit fccb86d5c0

@ -118,7 +118,9 @@ namespace O3DE::ProjectManager
} }
} }
if (m_configProjectProcess->exitCode() != 0 || !containsGeneratingDone) if (m_configProjectProcess->exitStatus() != QProcess::ExitStatus::NormalExit
|| m_configProjectProcess->exitCode() != 0
|| !containsGeneratingDone)
{ {
QString error = tr("Configuring project failed. See log for details."); QString error = tr("Configuring project failed. See log for details.");
QStringToAZTracePrint(error); QStringToAZTracePrint(error);
@ -180,7 +182,8 @@ namespace O3DE::ProjectManager
} }
} }
if (m_configProjectProcess->exitCode() != 0) if (m_configProjectProcess->exitStatus() != QProcess::ExitStatus::NormalExit
|| m_configProjectProcess->exitCode() != 0)
{ {
QString error = tr("Building project failed. See log for details."); QString error = tr("Building project failed. See log for details.");
QStringToAZTracePrint(error); QStringToAZTracePrint(error);

@ -104,7 +104,7 @@ namespace O3DE::ProjectManager
QMessageBox::critical(m_parent, tr("Project Failed to Build!"), result); QMessageBox::critical(m_parent, tr("Project Failed to Build!"), result);
m_projectInfo.m_buildFailed = true; m_projectInfo.m_buildFailed = true;
m_projectInfo.m_logUrl = QUrl(); m_projectInfo.m_logUrl = QUrl("file:///" + m_worker->GetLogFilePath());
emit NotifyBuildProject(m_projectInfo); emit NotifyBuildProject(m_projectInfo);
} }

Loading…
Cancel
Save