summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-05 23:02:29 +0200
committerLioncash <mathew1800@gmail.com>2019-07-05 23:02:32 +0200
commit7ad11e3867f4a7602edb8793c4c90d557d85c7c7 (patch)
tree13b1789cc4e3277e2f815d89299c8d7620a1844f /src
parentMerge pull request #2601 from FernandoS27/texture_cache (diff)
downloadyuzu-7ad11e3867f4a7602edb8793c4c90d557d85c7c7.tar
yuzu-7ad11e3867f4a7602edb8793c4c90d557d85c7c7.tar.gz
yuzu-7ad11e3867f4a7602edb8793c4c90d557d85c7c7.tar.bz2
yuzu-7ad11e3867f4a7602edb8793c4c90d557d85c7c7.tar.lz
yuzu-7ad11e3867f4a7602edb8793c4c90d557d85c7c7.tar.xz
yuzu-7ad11e3867f4a7602edb8793c4c90d557d85c7c7.tar.zst
yuzu-7ad11e3867f4a7602edb8793c4c90d557d85c7c7.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/reporter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp
index 774022569..79af28314 100644
--- a/src/core/reporter.cpp
+++ b/src/core/reporter.cpp
@@ -31,8 +31,10 @@ std::string GetTimestamp() {
using namespace nlohmann;
void SaveToFile(const json& json, const std::string& filename) {
- if (!FileUtil::CreateFullPath(filename))
+ if (!FileUtil::CreateFullPath(filename)) {
LOG_ERROR(Core, "Failed to create path for '{}' to save report!", filename);
+ return;
+ }
std::ofstream file(
FileUtil::SanitizePath(filename, FileUtil::DirectorySeparator::PlatformDefault));