Skip to content
Snippets Groups Projects
Unverified Commit e1981b8b authored by David's avatar David Committed by GitHub
Browse files

Merge pull request #2708 from DarkLordZach/mii-db-source-crash

mii: Handle logging of unknown database source
parents 19af9143 37a352e9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment