fix(Inst.Import): Show error reason in fail dialog
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
a116778402
commit
79b79b752c
@ -25,9 +25,13 @@ void InstanceCreationTask::executeTask()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
qWarning() << "Instance creation failed!";
|
qWarning() << "Instance creation failed!";
|
||||||
if (!m_error_message.isEmpty())
|
if (!m_error_message.isEmpty()) {
|
||||||
qWarning() << "Reason: " << m_error_message;
|
qWarning() << "Reason: " << m_error_message;
|
||||||
emitFailed(tr("Error while creating new instance."));
|
emitFailed(tr("Error while creating new instance:\n%1").arg(m_error_message));
|
||||||
|
} else {
|
||||||
|
emitFailed(tr("Error while creating new instance."));
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user