From 134a30624ffe335f74ead1bf164bb801abbf0ee3 Mon Sep 17 00:00:00 2001 From: Guy Scharf Date: Wed, 19 Aug 2020 10:14:38 -0700 Subject: [PATCH] Improve file open diagnostic messages --- oscar/SleepLib/loader_plugins/edfparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oscar/SleepLib/loader_plugins/edfparser.cpp b/oscar/SleepLib/loader_plugins/edfparser.cpp index 2da3b70a..f9944568 100644 --- a/oscar/SleepLib/loader_plugins/edfparser.cpp +++ b/oscar/SleepLib/loader_plugins/edfparser.cpp @@ -66,7 +66,7 @@ bool EDFInfo::Open(const QString & name) } QFile fi(name); if (!fi.open(QFile::ReadOnly)) { - qDebug() << "EDFInfo::Open() Couldn't open file " << name; + qDebug() << "EDFInfo::Open() Couldn't open file" << name << "error" << fi.error() << fi.errorString(); return false; } // fileData = new QByteArray(); @@ -291,7 +291,7 @@ EDFHeaderQT * EDFInfo::GetHeader( const QString & name) { QFile fi(name); if (!fi.open(QFile::ReadOnly)) { - qDebug() << "EDFInfo::Open() Couldn't open file " << name; + qDebug() << "EDFInfo::Open() Couldn't open file" << name << "error" << fi.error() << fi.errorString(); // sleep(1); return nullptr; }