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 #500
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
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 {
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):