1
0
mirror of https://github.com/muesli/mastotool synced 2025-06-05 22:09:22 +02:00

Return an error instead of panicking in parseToot

This commit is contained in:
Christian Muehlhaeuser
2019-08-08 06:17:52 +02:00
parent 388aa2c5ec
commit 6e0c280ea1

View File

@@ -71,7 +71,7 @@ func parseToot(status *mastodon.Status, stats *stats) error {
if status.InReplyToID == nil {
contexts, err := client.GetStatusContext(context.Background(), status.ID)
if err != nil {
panic(err)
return err
}
// handle replies for this status