Merge branch 'mg/commit-author-no-match-malformed-message'
authorJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2015 18:15:23 +0000 (10:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2015 18:15:23 +0000 (10:15 -0800)
The error message from "git commit", when a non-existing author
name was given as value to the "--author=" parameter, has been
reworded to avoid misunderstanding.

* mg/commit-author-no-match-malformed-message:
commit: reword --author error message

builtin/commit.c
index 7f467133b88c10e2440c878a0218bee981b3acd7..6055c760f037617637eb7bffebe82213748b5e59 100644 (file)
@@ -1050,7 +1050,7 @@ static const char *find_author_by_nickname(const char *name)
                clear_mailmap(&mailmap);
                return strbuf_detach(&buf, NULL);
        }
-       die(_("No existing author found with '%s'"), name);
+       die(_("--author '%s' is not 'Name <email>' and matches no existing author"), name);
 }