diff --git a/oscar/SleepLib/common.cpp b/oscar/SleepLib/common.cpp index 1f69325e..9bfe936c 100644 --- a/oscar/SleepLib/common.cpp +++ b/oscar/SleepLib/common.cpp @@ -419,7 +419,7 @@ void copyPath(QString src, QString dst) if (!QFile::exists(destFile)) { if (!QFile::copy(srcFile, destFile)) { - qWarning() << "Could not copy" << srcFile << "to" << destFile; + qWarning() << "copyPath: could not copy" << srcFile << "to" << destFile; } // TODO: Since copyPath is only used by loaders, it should // build the list of files first, and then update the progress bar diff --git a/oscar/SleepLib/preferences.cpp b/oscar/SleepLib/preferences.cpp index 3e187094..7efae835 100644 --- a/oscar/SleepLib/preferences.cpp +++ b/oscar/SleepLib/preferences.cpp @@ -178,7 +178,7 @@ bool Preferences::Open(QString filename) if (!file.open(QIODevice::ReadOnly)) { // qWarning() << "Could not open" << p_filename.toLocal8Bit().data() << " Error: " << file.error(); - qWarning() << "Could not open preferences file" << filename << "for reading, error code" << file.error() << file.errorString(); + qWarning() << "Could not open preferences file for reading, error code" << file.error() << file.errorString(); return false; } diff --git a/oscar/main.cpp b/oscar/main.cpp index cc19464d..58fb0e75 100644 --- a/oscar/main.cpp +++ b/oscar/main.cpp @@ -89,8 +89,10 @@ bool copyRecursively(QString sourceFolder, QString destFolder, QProgressDialog& progress.setValue(numFilesCopied); QCoreApplication::processEvents(); } - if(!success) + if(!success) { + qWarning() << "copyRecursively: Unable to copy" << srcName << "to" << destName; return false; + } } files.clear();