refs.c: refer to "object ID", not "sha1", in error messages
authorMartin Ågren <martin.agren@gmail.com>
Thu, 10 May 2018 19:29:54 +0000 (21:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 May 2018 01:36:11 +0000 (10:36 +0900)
We have two error messages that complain about the "sha1". Because we
are about to touch one of these sites and add some tests, let's first
modernize the messages to say "object ID" instead.

While at it, make the second one use `error()` instead of `warning()`.
After printing the message, we do not continue, but actually drop the
lock and return -1 without deleting the pseudoref.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found