summaryrefslogtreecommitdiff
path: root/src/deviceConfig.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/deviceConfig.hpp')
-rw-r--r--src/deviceConfig.hpp5
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 != "")