diff --git a/src/billy_objects.cpp b/src/billy_objects.cpp index 0cf0bdb..e737294 100644 --- a/src/billy_objects.cpp +++ b/src/billy_objects.cpp @@ -119,6 +119,8 @@ namespace character { case toolsHash: billy.emplace(static_cast(value), std::make_unique(static_cast(value))); break; + default: + throw std::logic_error("Wrong hash for from_json in BillyObjects::from_json"); } } }