diff --git a/event.go b/event.go index 63ecc21..c397df3 100644 --- a/event.go +++ b/event.go @@ -588,6 +588,10 @@ func publishFlow(ctx context.Context, c *cli.Command, kr nostr.Signer, evt nostr if len(successRelays) > 0 && c.Bool("nevent") { log(nip19.EncodeNevent(evt.ID, successRelays, evt.PubKey) + "\n") } + + if len(successRelays) == 0 { + return fmt.Errorf("failed to publish to any of the relays") + } } return nil