Skip to content
Snippets Groups Projects
Commit ada66847 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.rewriter: add sanity check to qDebug

parent b1385817
No related branches found
No related tags found
No related merge requests found
......@@ -430,7 +430,8 @@ void RewriterView::applyChanges()
const QString content = textModifierContent();
qDebug() << "RewriterException:" << m_rewritingErrorMessage;
qDebug() << "Content:" << content;
qDebug() << "Error:" << errors().first().description();
if (!errors().isEmpty())
qDebug() << "Error:" << errors().first().description();
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, m_rewritingErrorMessage, content);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment