summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-07-01 10:43:16 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-07-01 01:21:21 +0000
commita0643a9c9879e569c2a47b13f203561de8031cc0 (patch)
tree9a4b7460e739f44913b35e1b118257988fc52569 /tools
parentf15da0f10890467712222410233c0bec9faefdd0 (diff)
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 #500 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.c3
-rwxr-xr-xtools/test_tool_option_parsing.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/tools/shared.c b/tools/shared.c
index c8793b3e..e0eae681 100644
--- a/tools/shared.c
+++ b/tools/shared.c
@@ -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 {
diff --git a/tools/test_tool_option_parsing.py b/tools/test_tool_option_parsing.py
index f506a217..d059d914 100755
--- a/tools/test_tool_option_parsing.py
+++ b/tools/test_tool_option_parsing.py
@@ -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):