func check(err error, tagger *m.Tagger) { if err != nil { str := tagger.StrError() fmt.Printf("\nException:%s", str) tagger.Destroy() os.Exit(-1) } }