mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Throw a logic_error if the CXX layer's EdgeType variant is unrecognised
This commit is contained in:
@@ -34,7 +34,10 @@ std::optional<loot::EdgeType> convert(loot::rust::EdgeType edgeType) {
|
||||
case loot::rust::EdgeType::None:
|
||||
return std::nullopt;
|
||||
default:
|
||||
return std::nullopt;
|
||||
throw std::logic_error(
|
||||
"Unrecognised EdgeType: " +
|
||||
std::to_string(
|
||||
std::underlying_type_t<loot::rust::EdgeType>(edgeType)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user