cherry-pick/revert: Use error() for failure message
commit981ff5c37ae20687c98d98c8689d5e89016026d2
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 11 Aug 2010 08:37:24 +0000 (11 03:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Aug 2010 02:12:07 +0000 (15 19:12 -0700)
tree868d1a043744c3eb2b744618038fc921fbcae1e5
parent2a41dfb03b93c3e5b7d1deca537276aed063a044
cherry-pick/revert: Use error() for failure message

When cherry-pick fails after picking a large series of commits, it can
be hard to pick out the error message and advice.  Clarify the error
and prefix it with “error: ” to help.

Before:

Automatic cherry-pick failed.  [...advice...]

After:

error: could not apply 7ab78c9... Do something neat.
[...advice...]

Noticed-by: Thomas Rast <trast@student.ethz.ch>
Encouraged-by: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c