mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 02:30:44 +00:00
Improve file open diagnostic messages
This commit is contained in:
parent
4e0d8d33fd
commit
134a30624f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user