aboutsummaryrefslogtreecommitdiff
path: root/libs/game_bethesda/src/gamebryo/gamegamebryo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/game_bethesda/src/gamebryo/gamegamebryo.cpp')
-rw-r--r--libs/game_bethesda/src/gamebryo/gamegamebryo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/game_bethesda/src/gamebryo/gamegamebryo.cpp b/libs/game_bethesda/src/gamebryo/gamegamebryo.cpp
index caeeed0..1bcc2c0 100644
--- a/libs/game_bethesda/src/gamebryo/gamegamebryo.cpp
+++ b/libs/game_bethesda/src/gamebryo/gamegamebryo.cpp
@@ -495,7 +495,11 @@ void GameGamebryo::copyToProfile(QString const& sourcePath,
sourceFile = resolveFileCaseInsensitive(sourceFile);
if (!MOBase::shellCopy(sourceFile, filePath)) {
// if copy file fails, create the file empty
- QFile(filePath).open(QIODevice::WriteOnly);
+ QFile outputFile(filePath);
+ if (!outputFile.open(QIODevice::WriteOnly)) {
+ MOBase::log::warn("Failed to create fallback file '{}': {}", filePath,
+ outputFile.errorString());
+ }
}
}
}