tools/record: fix quirk error message
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 12 Dec 2022 18:13:58 +0000 (19:13 +0100)
committerJosé Expósito <jose.exposito89@gmail.com>
Mon, 12 Dec 2022 18:17:01 +0000 (19:17 +0100)
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>
tools/libinput-record.c

index 0b03ad0601c99dd3298b0331d6732fb53641e120..30b290021e38f46253a1e134ed5c5782ffc9c328 100644 (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;
        }