summaryrefslogtreecommitdiff
path: root/src/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/tunDevice.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/linux/tunDevice.cpp b/src/linux/tunDevice.cpp
index 8548331..4185bef 100644
--- a/src/linux/tunDevice.cpp
+++ b/src/linux/tunDevice.cpp
@@ -46,7 +46,9 @@ TunDevice::TunDevice(const char* dev_name, const char* dev_type, const char* ifc
{
fd_ = ::open(DEFAULT_DEVICE, O_RDWR);
if(fd_ < 0) {
- std::string msg("can't open device file: ");
+ std::string msg("can't open device file (");
+ msg.append(DEFAULT_DEVICE);
+ msg.append("): ");
msg.append(strerror(errno));
throw std::runtime_error(msg);
}