aboutsummaryrefslogtreecommitdiff
path: root/src/backends/BackendRegistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/BackendRegistry.cpp')
-rw-r--r--src/backends/BackendRegistry.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backends/BackendRegistry.cpp b/src/backends/BackendRegistry.cpp
index a5e9f0e1d9..1360168b9f 100644
--- a/src/backends/BackendRegistry.cpp
+++ b/src/backends/BackendRegistry.cpp
@@ -19,7 +19,8 @@ void BackendRegistry::Register(const BackendId& id, FactoryFunction factory)
{
if (m_BackendFactories.count(id) > 0)
{
- throw InvalidArgumentException(std::string(id) + " already registered as backend");
+ throw InvalidArgumentException(std::string(id) + " already registered as backend",
+ CHECK_LOCATION());
}
m_BackendFactories[id] = factory;
@@ -30,7 +31,8 @@ BackendRegistry::FactoryFunction BackendRegistry::GetFactory(const BackendId& id
auto it = m_BackendFactories.find(id);
if (it == m_BackendFactories.end())
{
- throw InvalidArgumentException(std::string(id) + " has no backend factory registered");
+ throw InvalidArgumentException(std::string(id) + " has no backend factory registered",
+ CHECK_LOCATION());
}
return it->second;