diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-11-26 15:21:45 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-11-30 09:09:32 +1000 |
commit | 8fe2af535c6f0fc4f39444b81b1c5f631ef199c0 (patch) | |
tree | 57460791da5c3a8685d649a759098edf7fe176d5 | |
parent | 5095e816b5b9522bec9549384ec8e0e6a8de4e3d (diff) |
Print the path to the recordings file if it failed to open
Might as well be useful here
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.cpp b/src/device.cpp index 0de0026..5e3c562 100644 --- a/src/device.cpp +++ b/src/device.cpp @@ -165,7 +165,7 @@ xorg::testing::evemu::Device::Device(const std::string& path) FILE* fp = fopen(path.c_str(), "r"); if (fp == nullptr) { evemu_delete(d_->device); - throw std::runtime_error("Failed to open device file"); + throw std::runtime_error("Failed to open device file " + path); } if (evemu_read(d_->device, fp) <= 0) { |