mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:03:53 +02:00
Output busnum and devnum when failing to open mtp device
This commit is contained in:
parent
ab1c011419
commit
85a69325ea
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ Device_init(Device *self, PyObject *args, PyObject *kwds)
|
|||
Py_BEGIN_ALLOW_THREADS;
|
||||
dev = LIBMTP_Open_Raw_Device_Uncached(&rdev);
|
||||
Py_END_ALLOW_THREADS;
|
||||
if (dev == NULL) { free(rawdevs); PyErr_SetString(MTPError, "Unable to open raw device."); return -1; }
|
||||
if (dev == NULL) { free(rawdevs); PyErr_Format(MTPError, "Unable to open raw device with busnum=%lu and devnum=%u", busnum, devnum); return -1; }
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue