CTF: Add qt_error_string to file open warning
Pick-to: 6.5 Change-Id: I85e1aff7689b6592ad2da1e91f480848eea317eb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
fdce0cbbc9
commit
6639285ad7
@ -70,7 +70,8 @@ QCtfLibImpl::QCtfLibImpl()
|
||||
const QString filename = location + QStringLiteral("/session.json");
|
||||
FILE *file = fopen(qPrintable(filename), "rb");
|
||||
if (!file) {
|
||||
qCWarning(lcDebugTrace) << "unable to open session file: " << filename;
|
||||
qCWarning(lcDebugTrace) << "unable to open session file: "
|
||||
<< filename << ", " << qt_error_string();
|
||||
m_location = location;
|
||||
m_session.tracepoints.append(QStringLiteral("all"));
|
||||
m_session.name = QStringLiteral("default");
|
||||
|
Loading…
Reference in New Issue
Block a user