st/prober: Better error printing

This commit is contained in:
Jakob Bornecrantz 2019-10-04 10:27:49 +01:00
parent f2fcfd98e1
commit d8cd9ffcdd

View file

@ -597,7 +597,8 @@ open_hid_interface(struct xrt_prober *xp,
ret = os_hid_open_hidraw(hidraw->path, out_hid_dev);
if (ret != 0) {
P_ERROR(p, "Failed to open device!");
P_ERROR(p, "Failed to open device '%s' got '%i'",
hidraw->path, ret);
return ret;
}