Commit 8fe2af53 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

Print the path to the recordings file if it failed to open



Might as well be useful here
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 5095e816
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment