mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix: log error if file open/commit fails
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
09823dbb4a
commit
838687fb2e
23 changed files with 54 additions and 44 deletions
|
|
@ -113,7 +113,7 @@ auto HttpMetaCache::resolveEntry(QString base, QString resource_path, QString ex
|
|||
if (file_last_changed != entry->m_local_changed_timestamp) {
|
||||
QFile input(real_path);
|
||||
if (!input.open(QIODevice::ReadOnly)) {
|
||||
qWarning() << "Failed to open file '" << input.fileName() << "' for reading!";
|
||||
qWarning() << "Failed to open file" << input.fileName() << "for reading:" << input.errorString();
|
||||
return staleEntry(base, resource_path);
|
||||
}
|
||||
QString md5sum = QCryptographicHash::hash(input.readAll(), QCryptographicHash::Md5).toHex().constData();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue