mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-26 07:07:51 +00:00
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.
This commit is contained in:
parent
deecd7f074
commit
329081fcb7
1 changed files with 2 additions and 1 deletions
|
@ -495,7 +495,8 @@ Boxcat::StatusResult Boxcat::GetStatus(std::optional<std::string>& global,
|
||||||
}
|
}
|
||||||
|
|
||||||
return StatusResult::Success;
|
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;
|
return StatusResult::ParseError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue