1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-18 01:57:04 +00:00

Use Errorf

This commit is contained in:
teru
2017-07-25 11:57:30 +09:00
parent 2e87209ad2
commit 146ab299d0
23 changed files with 97 additions and 97 deletions

View File

@@ -38,13 +38,13 @@ Description:
func (c *CmdDomains) Run(args []string) int {
repo, err := mailfull.OpenRepository(".")
if err != nil {
fmt.Fprintf(c.UI.ErrorWriter, "[ERR] %v\n", err)
c.Meta.Errorf("%v\n", err)
return 1
}
domains, err := repo.Domains()
if err != nil {
fmt.Fprintf(c.UI.ErrorWriter, "[ERR] %v\n", err)
c.Meta.Errorf("%v\n", err)
return 1
}
sort.Sort(mailfull.DomainSlice(domains))