GUI: Write error summary to CSV and TXT reports.
It makes more sense to write the one-line summary to TXT and especially to CSV reports. Long multi-line verbose messages ruin the layout these files.
This commit is contained in:
parent
43b0e2a74c
commit
b7cb684b1b
|
@ -65,7 +65,7 @@ void CsvReport::WriteError(const ErrorItem &error)
|
||||||
QString line;
|
QString line;
|
||||||
const QString file = QDir::toNativeSeparators(error.files[error.files.size() - 1]);
|
const QString file = QDir::toNativeSeparators(error.files[error.files.size() - 1]);
|
||||||
line += QString("%1,%2,").arg(file).arg(error.lines[error.lines.size() - 1]);
|
line += QString("%1,%2,").arg(file).arg(error.lines[error.lines.size() - 1]);
|
||||||
line += QString("%1,%2").arg(error.severity).arg(error.message);
|
line += QString("%1,%2").arg(error.severity).arg(error.summary);
|
||||||
|
|
||||||
mTxtWriter << line << endl;
|
mTxtWriter << line << endl;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ void TxtReport::WriteError(const ErrorItem &error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
line += QString("(%1) %2").arg(error.severity).arg(error.message);
|
line += QString("(%1) %2").arg(error.severity).arg(error.summary);
|
||||||
|
|
||||||
mTxtWriter << line << endl;
|
mTxtWriter << line << endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue