1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-17 17:47: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

@@ -35,7 +35,7 @@ Description:
// Run runs the command and returns the exit status.
func (c *CmdInit) Run(args []string) int {
if err := mailfull.InitRepository("."); err != nil {
fmt.Fprintf(c.UI.ErrorWriter, "[ERR] %v\n", err)
c.Meta.Errorf("%v\n", err)
return 1
}