mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-06 13:26:58 +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
|
|
@ -751,7 +751,7 @@ bool loadIconFile(const Mod& mod, QPixmap* pixmap)
|
|||
if (icon_info.exists() && icon_info.isFile()) {
|
||||
QFile icon(icon_info.filePath());
|
||||
if (!icon.open(QIODevice::ReadOnly)) {
|
||||
return png_invalid("failed to open file " + icon_info.filePath());
|
||||
return png_invalid("failed to open file " + icon_info.filePath() + " " + icon.errorString());
|
||||
}
|
||||
auto data = icon.readAll();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue