Commit a0c30b15 authored by con's avatar con
Browse files

Fix xml parse error handling.

parent 1d517641
...@@ -218,6 +218,10 @@ ExternalTool * ExternalTool::createFromXml(const QByteArray &xml, QString *error ...@@ -218,6 +218,10 @@ ExternalTool * ExternalTool::createFromXml(const QByteArray &xml, QString *error
break; break;
} }
tool->m_workingDirectory = reader.readElementText(); tool->m_workingDirectory = reader.readElementText();
} else {
reader.raiseError(QString::fromLatin1("Unknown element <%1> as subelement of <%2>").arg(
reader.qualifiedName().toString(), QLatin1String(kExecutable)));
break;
} }
} }
} else { } else {
......
Markdown is supported
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