summaryrefslogtreecommitdiff
path: root/node/EthernetTap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/EthernetTap.cpp')
-rw-r--r--node/EthernetTap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/EthernetTap.cpp b/node/EthernetTap.cpp
index 870baceb..b2682006 100644
--- a/node/EthernetTap.cpp
+++ b/node/EthernetTap.cpp
@@ -114,7 +114,7 @@ EthernetTap::EthernetTap(
_fd = ::open("/dev/net/tun",O_RDWR);
if (_fd <= 0)
- throw std::runtime_error("could not open TUN/TAP device");
+ throw std::runtime_error(std::string("could not open TUN/TAP device: ") + strerror(errno));
struct ifreq ifr;
memset(&ifr,0,sizeof(ifr));