summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2019-10-06 13:58:51 -0400
committerGravatar Lioncash2019-10-06 14:00:32 -0400
commit329081fcb7e1d663ab898d805ba24fb42b53db4c (patch)
tree58dc72be99547a681fbc2f17c10ae474d45719ef /src/core
parentMerge pull request #2942 from ReinUsesLisp/clang-warnings (diff)
downloadyuzu-329081fcb7e1d663ab898d805ba24fb42b53db4c.tar.gz
yuzu-329081fcb7e1d663ab898d805ba24fb42b53db4c.tar.xz
yuzu-329081fcb7e1d663ab898d805ba24fb42b53db4c.zip
boxcat: Silence an unused variable warning
On parse errors, we can log out the explanatory string indicating what the parsing error was, rather than just ignoring the variable and returning an overly broad error code.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/bcat/backend/boxcat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/bcat/backend/boxcat.cpp b/src/core/hle/service/bcat/backend/boxcat.cpp
index 0e451e9c2..64022982b 100644
--- a/src/core/hle/service/bcat/backend/boxcat.cpp
+++ b/src/core/hle/service/bcat/backend/boxcat.cpp
@@ -495,7 +495,8 @@ Boxcat::StatusResult Boxcat::GetStatus(std::optional<std::string>& global,
495 } 495 }
496 496
497 return StatusResult::Success; 497 return StatusResult::Success;
498 } catch (const nlohmann::json::parse_error& e) { 498 } catch (const nlohmann::json::parse_error& error) {
499 LOG_ERROR(Service_BCAT, "{}", error.what());
499 return StatusResult::ParseError; 500 return StatusResult::ParseError;
500 } 501 }
501} 502}