tools/record: fix quirk error message

When libinput-record fails to parse the quirks, it suggest to use the
--verbose flag to get more details. However, libinput-record does not
support the --verbose flag.

Replace the error message and add a link to the documentation instead.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
This commit is contained in:
José Expósito 2022-12-12 19:13:58 +01:00
parent ea9db278f3
commit 7bfdf52db2

View file

@ -1782,9 +1782,13 @@ print_device_quirks(struct record_device *dev)
QLOG_CUSTOM_LOG_PRIORITIES);
if (!quirks) {
fprintf(stderr,
"Failed to initialize the device quirks. "
"Please see the above errors "
"and/or re-run with --verbose for more details\n");
"Failed to load the device quirks from %s%s%s. "
"This will negatively affect device behavior. "
"See %s/device-quirks.html for details.\n",
data_path,
override_file ? " and " : "",
override_file ? override_file : "",
HTTP_DOC_LINK);
return;
}