change error handling

This commit is contained in:
2025-03-16 19:24:56 +09:00
parent 1d6e9258f9
commit f9b6c39353
4 changed files with 15 additions and 11 deletions

View File

@@ -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"
}