Improved error message
This commit is contained in:
@@ -94,7 +94,7 @@ namespace ecs::serial {
|
|||||||
std::cout << '\n';
|
std::cout << '\n';
|
||||||
auto func = internal::functions.find(new_id);
|
auto func = internal::functions.find(new_id);
|
||||||
if (func == internal::functions.end()) {
|
if (func == internal::functions.end()) {
|
||||||
throw std::runtime_error("Unknown id");
|
throw std::runtime_error("No known serializers for component");
|
||||||
}
|
}
|
||||||
Component* component = std::get<2>(func->second)();
|
Component* component = std::get<2>(func->second)();
|
||||||
std::get<1>(func->second)(is, component);
|
std::get<1>(func->second)(is, component);
|
||||||
|
|||||||
Reference in New Issue
Block a user