Add better logging for file open and write errors

This commit is contained in:
Jonas Kvinge
2021-08-09 23:32:26 +02:00
parent 7d61d8e646
commit f1d3cadb3b
15 changed files with 120 additions and 41 deletions

View File

@@ -210,6 +210,12 @@ bool GPodDevice::CopyToStorage(const CopyJob &job) {
track->has_artwork = 1;
}
}
else {
qLog(Error) << "Failed to save" << cover_file->fileName() << cover_file->errorString();
}
}
else {
qLog(Error) << "Failed to open" << cover_file->fileName() << cover_file->errorString();
}
}
else if (!job.cover_source_.isEmpty()) {