From b7013f1be9a5f09ecae4b37f0986352abfcd0dc1 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Feb 2009 07:20:56 +0000 Subject: replaced regular throws with AnytunError::thowErr --- src/deviceConfig.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/deviceConfig.hpp') diff --git a/src/deviceConfig.hpp b/src/deviceConfig.hpp index 3c3fd41..515e38d 100644 --- a/src/deviceConfig.hpp +++ b/src/deviceConfig.hpp @@ -34,6 +34,7 @@ #include "networkAddress.h" #include +#include "anytunError.hpp" class TunDevice; @@ -61,7 +62,7 @@ public: } #else if(dev_type == "") - throw std::runtime_error("Device type must be specified on Windows"); + AnytunError::throwErr() << "Device type must be specified on Windows"; if(dev_type == "tun") type_ = TYPE_TUN; @@ -69,7 +70,7 @@ public: type_ = TYPE_TAP; if(type_ == TYPE_TUN && ifcfg_addr == "") - throw std::runtime_error("Device type tun requires ifconfig parameter (--ifconfig)"); + AnytunError::throwErr() << "Device type tun requires ifconfig parameter (--ifconfig)"; #endif if(ifcfg_addr != "") -- cgit v1.2.3