1
0
forked from drath/libratbag

improve error for missing device files

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2017-08-30 18:39:23 +02:00
committed by Peter Hutterer
parent 7e97936f0e
commit 3fd7cd0137

View File

@@ -327,8 +327,8 @@ ratbag_device_data_new_for_id(struct ratbag *ratbag, const struct input_id *id)
n = scandir(LIBRATBAG_DATA_DIR, &files, filter_device_files, alphasort);
if (n <= 0) {
log_error(ratbag, "Unable to locate device files: %s\n",
n == 0 ? "No files found" : strerror(errno));
log_error(ratbag, "Unable to locate device files in %s: %s\n",
LIBRATBAG_DATA_DIR, n == 0 ? "No files found" : strerror(errno));
return NULL;
}