aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/mail.go
diff options
context:
space:
mode:
Diffstat (limited to 'git-codereview/mail.go')
-rw-r--r--git-codereview/mail.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-codereview/mail.go b/git-codereview/mail.go
index e6cdb90..55ab8ed 100644
--- a/git-codereview/mail.go
+++ b/git-codereview/mail.go
@@ -6,7 +6,6 @@ package main
import (
"fmt"
- "os"
"regexp"
"sort"
"strings"
@@ -38,11 +37,12 @@ func cmdMail(args []string) {
"Usage: %s mail %s [-r reviewer,...] [-cc mail,...]\n"+
"\t[-f] [-diff] [-hashtag tag,...] [-nokeycheck] [-topic topic]\n"+
"\t[-trust] [-trybot] [-wip] [commit]\n", progName, globalFlags)
+ exit(2)
}
flags.Parse(args)
if len(flags.Args()) > 1 {
flags.Usage()
- os.Exit(2)
+ exit(2)
}
b := CurrentBranch()
@@ -221,7 +221,7 @@ func mailList(start, tag string, flagList string) string {
verbosef("expanded %s to %s", short[1:], long[1:])
}
if errors {
- die()
+ exit(1)
}
return spec
}