Split messages with \n

This way the front-end won't receive a big string but every error in a
different line, so it improves the readability of the errors.

REVIEW: 108124
This commit is contained in:
Aleix Pol 2013-01-10 04:57:41 +01:00
parent ae25b971e3
commit cff944bfb8

View File

@ -105,7 +105,7 @@ bool DeclarativeAppletScript::init()
if (!m_declarativeWidget->engine() || !m_declarativeWidget->engine()->rootContext() || !m_declarativeWidget->engine()->rootContext()->isValid() || m_declarativeWidget->mainComponent()->isError()) {
QString reason;
foreach (QDeclarativeError error, m_declarativeWidget->mainComponent()->errors()) {
reason += error.toString();
reason += error.toString()+'\n';
}
setFailedToLaunch(true, reason);
return false;