mii: Handle logging of unknown database source

merge-requests/60/head
Zach Hilman 2019-07-10 07:07:24 +07:00
parent 05d55b0fd7
commit 37a352e9d3
1 changed files with 4 additions and 0 deletions

@ -175,6 +175,10 @@ MiiStoreData ConvertInfoToStoreData(const MiiInfo& info) {
} // namespace
std::ostream& operator<<(std::ostream& os, Source source) {
if (static_cast<std::size_t>(source) >= SOURCE_NAMES.size()) {
return os << "[UNKNOWN SOURCE]";
}
os << SOURCE_NAMES.at(static_cast<std::size_t>(source));
return os;
}