forked from qt-creator/qt-creator
ProjectExplorer: Show a verbose error message if available
... when a start failed, e.g. due to a inacessible working directory. Change-Id: Ibcec1c5323c37f1e8f6c9e55439439b24f3b40b1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -338,10 +338,14 @@ void AbstractProcessStep::processFinished(int exitCode, QProcess::ExitStatus sta
|
|||||||
|
|
||||||
void AbstractProcessStep::processStartupFailed()
|
void AbstractProcessStep::processStartupFailed()
|
||||||
{
|
{
|
||||||
emit addOutput(tr("Could not start process \"%1\" %2")
|
emit addOutput(tr("Could not start process \"%1\" %2.")
|
||||||
.arg(d->m_param.effectiveCommand().toUserOutput(),
|
.arg(d->m_param.effectiveCommand().toUserOutput(),
|
||||||
d->m_param.prettyArguments()),
|
d->m_param.prettyArguments()),
|
||||||
BuildStep::OutputFormat::ErrorMessage);
|
OutputFormat::ErrorMessage);
|
||||||
|
|
||||||
|
QString err = d->m_process ? d->m_process->errorString() : QString();
|
||||||
|
if (!err.isEmpty())
|
||||||
|
emit addOutput(err, OutputFormat::ErrorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Reference in New Issue
Block a user