Commit a0643a9c authored by Peter Hutterer's avatar Peter Hutterer

tools: change the error message for missing tools

Given that some people appear to not read until the "is not installed" part of
the error message, let's reduce the error message to just that part. This may
be confusing where a user mistypes the actual command but that happens rarely
compared to those that can't run libinput record because it's in a different
package.

Fixes #500Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent f15da0f1
Pipeline #169699 passed with stages
in 15 minutes and 41 seconds
......@@ -561,8 +561,7 @@ tools_exec_command(const char *prefix, int real_argc, char **real_argv)
if (rc) {
if (errno == ENOENT) {
fprintf(stderr,
"libinput: %s is not a libinput command or not installed. "
"See 'libinput --help'\n",
"libinput: %s is not installed.",
command);
return EXIT_INVALID_USAGE;
} else {
......
......@@ -105,7 +105,7 @@ class LibinputTool(object):
rc, stdout, stderr = self.run_command(args)
assert rc == 2, (rc, stdout, stderr)
assert stdout.startswith('Usage') or stdout == ''
assert 'is not a libinput command' in stderr
assert 'is not installed' in stderr
class LibinputDebugGui(LibinputTool):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment