diff options
author | Christian Pointner <equinox@anytun.org> | 2009-02-22 07:20:56 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-02-22 07:20:56 +0000 |
commit | b7013f1be9a5f09ecae4b37f0986352abfcd0dc1 (patch) | |
tree | f890c7677d27953afaf05215a9c91a86b23897bd /src/deviceConfig.hpp | |
parent | fixed signalController on unix (diff) |
replaced regular throws with AnytunError::thowErr
Diffstat (limited to 'src/deviceConfig.hpp')
-rw-r--r-- | src/deviceConfig.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <boost/asio.hpp> +#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 != "") |