Skip to content

Commit 932b573

Browse files
committed
Merge branch 'ks/branch-tweak-error-message-for-extra-args'
Error message tweak. * ks/branch-tweak-error-message-for-extra-args: branch: change the error messages to be more meaningful
2 parents da15b78 + f777623 commit 932b573

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/branch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,12 +744,12 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
744744
else if (argc == 2)
745745
copy_or_rename_branch(argv[0], argv[1], 0, rename > 1);
746746
else
747-
die(_("too many branches for a rename operation"));
747+
die(_("too many arguments for a rename operation"));
748748
} else if (new_upstream) {
749749
struct branch *branch = branch_get(argv[0]);
750750

751751
if (argc > 1)
752-
die(_("too many branches to set new upstream"));
752+
die(_("too many arguments to set new upstream"));
753753

754754
if (!branch) {
755755
if (!argc || !strcmp(argv[0], "HEAD"))
@@ -772,7 +772,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
772772
struct strbuf buf = STRBUF_INIT;
773773

774774
if (argc > 1)
775-
die(_("too many branches to unset upstream"));
775+
die(_("too many arguments to unset upstream"));
776776

777777
if (!branch) {
778778
if (!argc || !strcmp(argv[0], "HEAD"))

0 commit comments

Comments
 (0)