summaryrefslogtreecommitdiff
path: root/src/modules/m_testcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_testcommand.cpp')
-rw-r--r--src/modules/m_testcommand.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp
index 53414424d..881024cc7 100644
--- a/src/modules/m_testcommand.cpp
+++ b/src/modules/m_testcommand.cpp
@@ -55,8 +55,16 @@ class cmd_woot : public command_t
{
/* We dont have to worry about deleting 'r', the core will
* do it for us as required.*/
- MyResolver* r = new MyResolver("brainbox.ath.cx", true);
- Srv->AddResolver(r);
+
+ try
+ {
+ MyResolver* r = new MyResolver("brainbox.ath.cx", true);
+ Srv->AddResolver(r);
+ }
+ catch (ModuleException& e)
+ {
+ log(DEBUG,"Danger, will robinson! There was an exception: %s",e.GetReason());
+ }
}
};