forked from qt-creator/qt-creator
Add error string to IRunControlFactory::createRunControl
And add a few helpful error messages Task-number: QTCREATORBUG-7826 Change-Id: Ia9f9fa476cecf2cff198bc460408bc062e119338 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
committed by
Friedemann Kleint
parent
c5097ed183
commit
7657dd3a47
@@ -116,7 +116,7 @@ bool QnxRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMode mo
|
||||
return true;
|
||||
}
|
||||
|
||||
RunControl *QnxRunControlFactory::create(RunConfiguration *runConfig, RunMode mode)
|
||||
RunControl *QnxRunControlFactory::create(RunConfiguration *runConfig, RunMode mode, QString *errorMessage)
|
||||
{
|
||||
Q_ASSERT(canRun(runConfig, mode));
|
||||
|
||||
@@ -126,7 +126,7 @@ RunControl *QnxRunControlFactory::create(RunConfiguration *runConfig, RunMode mo
|
||||
return new QnxRunControl(rc);
|
||||
|
||||
const DebuggerStartParameters params = createStartParameters(rc);
|
||||
DebuggerRunControl * const runControl = DebuggerPlugin::createDebugger(params, rc);
|
||||
DebuggerRunControl * const runControl = DebuggerPlugin::createDebugger(params, rc, errorMessage);
|
||||
if (!runControl)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user