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 /describe.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 'describe.c')
-rw-r--r-- | describe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/describe.c b/describe.c index ff6574261..8a9cd5d52 100644 --- a/describe.c +++ b/describe.c @@ -105,11 +105,11 @@ static void describe(char *arg, int last_one) static int initialized = 0; struct commit_name *n; - if (get_sha1(arg, sha1) < 0) - usage(describe_usage); + if (get_sha1(arg, sha1)) + die("Not a valid object name %s", arg); cmit = lookup_commit_reference(sha1); if (!cmit) - usage(describe_usage); + die("%s is not a valid '%s' object", arg, commit_type); if (!initialized) { initialized = 1; |