mirror of
https://github.com/paboyle/Grid.git
synced 2025-12-19 20:24:29 +00:00
Hadrons: error managed through expections
This commit is contained in:
@@ -95,7 +95,7 @@ std::unique_ptr<T> Factory<T>::create(const std::string type,
|
||||
}
|
||||
catch (std::out_of_range &)
|
||||
{
|
||||
HADRON_ERROR("object of type '" + type + "' unknown");
|
||||
HADRON_ERROR(Argument, "object of type '" + type + "' unknown");
|
||||
}
|
||||
|
||||
return func(name);
|
||||
|
||||
Reference in New Issue
Block a user