diff --git a/service.go b/service.go index 871d9966..5efa4b1f 100644 --- a/service.go +++ b/service.go @@ -129,6 +129,10 @@ func (svc *Service) StartSubscription(ctx context.Context, sub *nostr.Subscripti }() <-ctx.Done() + if sub.Relay.ConnectionError != nil { + svc.Logger.Errorf("Relay error %v", ctx.Err()) + return sub.Relay.ConnectionError + } if ctx.Err() != context.Canceled { svc.Logger.Errorf("Subscription error %v", ctx.Err()) return ctx.Err()