change error handling
This commit is contained in:
@@ -47,9 +47,9 @@ func (to *twitteroutput) Write(str string) error {
|
||||
}
|
||||
|
||||
_, err := managetweet.Create(context.Background(), to.client, p)
|
||||
if err != nil {
|
||||
fmt.Fprint(os.Stderr, "twitter err: ")
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (to *twitteroutput) GetName() string {
|
||||
return "twitter"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user