Skip to content

Commit

Permalink
cmd/bsky-webhook: make dial and login errors non-fatal (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair authored Nov 15, 2024
1 parent 6a53670 commit 55aaade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/bsky-webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ func websocketConnection(ctx context.Context, wsUrl url.URL) error {

bsky, err := bluesky.DialWithClient(ctx, *bskyServerURL, httpClient)
if err != nil {
log.Fatal("dial bsky: ", err)
return fmt.Errorf("dial bsky: %w", err)
}
defer bsky.Close()

err = bsky.Login(ctx, *bskyHandle, *bskyAppKey)
if err != nil {
log.Fatal("login bsky: ", err)
return fmt.Errorf("login bsky: %w", err)
}

for ctx.Err() == nil {
Expand Down

0 comments on commit 55aaade

Please sign in to comment.