Skip to content

Commit 55aaade

Browse files
authored
cmd/bsky-webhook: make dial and login errors non-fatal (#6)
1 parent 6a53670 commit 55aaade

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/bsky-webhook/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ func websocketConnection(ctx context.Context, wsUrl url.URL) error {
187187

188188
bsky, err := bluesky.DialWithClient(ctx, *bskyServerURL, httpClient)
189189
if err != nil {
190-
log.Fatal("dial bsky: ", err)
190+
return fmt.Errorf("dial bsky: %w", err)
191191
}
192192
defer bsky.Close()
193193

194194
err = bsky.Login(ctx, *bskyHandle, *bskyAppKey)
195195
if err != nil {
196-
log.Fatal("login bsky: ", err)
196+
return fmt.Errorf("login bsky: %w", err)
197197
}
198198

199199
for ctx.Err() == nil {

0 commit comments

Comments
 (0)