summaryrefslogtreecommitdiff
path: root/src/core/reporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/reporter.cpp')
-rw-r--r--src/core/reporter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp
index 6e21296f6..543b91d9a 100644
--- a/src/core/reporter.cpp
+++ b/src/core/reporter.cpp
@@ -339,8 +339,8 @@ void Reporter::SavePlayReport(PlayReportType type, u64 title_id, std::vector<std
339} 339}
340 340
341void Reporter::SaveErrorReport(u64 title_id, Result result, 341void Reporter::SaveErrorReport(u64 title_id, Result result,
342 std::optional<std::string> custom_text_main, 342 const std::optional<std::string>& custom_text_main,
343 std::optional<std::string> custom_text_detail) const { 343 const std::optional<std::string>& custom_text_detail) const {
344 if (!IsReportingEnabled()) { 344 if (!IsReportingEnabled()) {
345 return; 345 return;
346 } 346 }
@@ -354,8 +354,8 @@ void Reporter::SaveErrorReport(u64 title_id, Result result,
354 out["backtrace"] = GetBacktraceData(system); 354 out["backtrace"] = GetBacktraceData(system);
355 355
356 out["error_custom_text"] = { 356 out["error_custom_text"] = {
357 {"main", *custom_text_main}, 357 {"main", custom_text_main.value_or("")},
358 {"detail", *custom_text_detail}, 358 {"detail", custom_text_detail.value_or("")},
359 }; 359 };
360 360
361 SaveToFile(std::move(out), GetPath("error_report", title_id, timestamp)); 361 SaveToFile(std::move(out), GetPath("error_report", title_id, timestamp));