1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2026-01-03 18:07: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

@@ -48,7 +48,7 @@ func (c *CmdGenConfig) 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
}
@@ -60,7 +60,7 @@ func (c *CmdGenConfig) Run(args []string) int {
fmt.Fprintf(c.UI.Writer, "%s", repo.GenerateConfigDovecot())
default:
fmt.Fprintf(c.UI.ErrorWriter, "[ERR] Specify \"postfix\" or \"dovecot\".\n")
c.Meta.Errorf("Specify \"postfix\" or \"dovecot\".\n")
return 1
}