Improved error message

This commit is contained in:
Dreaded_X 2019-06-27 03:42:49 +02:00
parent ed076fd9fc
commit e43dbea6b1

View File

@ -94,7 +94,7 @@ namespace ecs::serial {
std::cout << '\n';
auto func = internal::functions.find(new_id);
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)();
std::get<1>(func->second)(is, component);