summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-06 13:58:51 -0400
committerLioncash <mathew1800@gmail.com>2019-10-06 14:00:32 -0400
commit329081fcb7e1d663ab898d805ba24fb42b53db4c (patch)
tree58dc72be99547a681fbc2f17c10ae474d45719ef
parentdeecd7f074a0547b8fc08a33fdc547eb63859e3e (diff)
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.
-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,
}
return StatusResult::Success;
- } catch (const nlohmann::json::parse_error& e) {
+ } catch (const nlohmann::json::parse_error& error) {
+ LOG_ERROR(Service_BCAT, "{}", error.what());
return StatusResult::ParseError;
}
}