diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2006-05-09 01:43:38 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-08 16:25:33 -0700 |
commit | 31fff305bcc6db3b8082eac7fc9e441b27964fea (patch) | |
tree | 1681e28441508afae3f3e1bf602c4b0914d9c820 /tar-tree.c | |
parent | afb4ff206967c6b3e481994cc6d0d86139792169 (diff) | |
download | git-31fff305bcc6db3b8082eac7fc9e441b27964fea.tar.gz git-31fff305bcc6db3b8082eac7fc9e441b27964fea.tar.xz |
Separate object name errors from usage errors
Separate object name errors from usage errors.
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tar-tree.c')
-rw-r--r-- | tar-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tar-tree.c b/tar-tree.c index fc60a9087..33087366c 100644 --- a/tar-tree.c +++ b/tar-tree.c @@ -321,8 +321,8 @@ int main(int argc, char **argv) strbuf_append_string(¤t_path, "/"); /* FALLTHROUGH */ case 2: - if (get_sha1(argv[1], sha1) < 0) - usage(tar_tree_usage); + if (get_sha1(argv[1], sha1)) + die("Not a valid object name %s", argv[1]); break; default: usage(tar_tree_usage); |