add error message while posting

This commit is contained in:
2025-03-16 09:24:15 +09:00
parent 4aa04ce4d1
commit bddc971065
2 changed files with 11 additions and 0 deletions

View File

@@ -47,5 +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
}