diff options
| author | Edwin Groothuis <edwin@FreeBSD.org> | 2007-12-14 08:46:57 +0000 |
|---|---|---|
| committer | Edwin Groothuis <edwin@FreeBSD.org> | 2007-12-14 08:46:57 +0000 |
| commit | 1b61ad6f384992f803b2dec5c0326fe44246d2aa (patch) | |
| tree | 69b5106b0a9628da5b7f56ef0cef6b8cc09be33d /usr.bin | |
| parent | ce448a2e74f01e8e92eb8e0e0be504288c1b3653 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/xinstall/xinstall.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index d0038de10bf2..49e47c65a362 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -221,7 +221,12 @@ main(int argc, char *argv[]) /* can't do file1 file2 directory/file */ if (argc != 2) { - warnx("wrong number or types of arguments"); + if (no_target) + warnx("target directory `%s' does not exist", + argv[argc - 1]); + else + warnx("target `%s' is not a directory", + argv[argc - 1]); usage(); } |
