Commit e64ce444 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add debug info when agentId is empty

parent aa6920d1
Pipeline #28458 canceled with stage
......@@ -152,6 +152,13 @@ void AgentInstanceCreateJobPrivate::doStart()
agentType = AgentManager::self()->type(agentTypeId);
if (!agentTypeId.isEmpty()) {
q->setErrorText(i18n("Agent Type undefined."));
QTimer::singleShot(0, q, &AgentInstanceCreateJob::emitResult);
if (!agentType.isValid()) {
q->setErrorText(i18n("Unable to obtain agent type '%1'.", agentTypeId));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment