diff options
author | Lioncash <mathew1800@gmail.com> | 2019-10-06 13:58:51 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-10-06 14:00:32 -0400 |
commit | 329081fcb7e1d663ab898d805ba24fb42b53db4c (patch) | |
tree | 58dc72be99547a681fbc2f17c10ae474d45719ef /src | |
parent | deecd7f074a0547b8fc08a33fdc547eb63859e3e (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/bcat/backend/boxcat.cpp | 3 |
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; } } |