No worries. Implementing a part of the Dart client test and wanted to assert the error came from a specific sub. I wonder why there is no ["ERROR", , "error message"]; seems pretty logical to me

Reply to this note

Please Login to reply.

Discussion

That is exactly what "CLOSED" is for.

Oh ok got it. So errors then should be sent with CLOSED, rather than NOTICE + EOSE.

I guess the spec is not very clear as it mentions "errors" only on NOTICE, maybe that's why most relay implementations do it that way

Sorry, I take that back. It actually is clear with the examples by the end of NIP. Relays fault

Yes, but that was added later, so implementations are lagged. In the beginning there was only NOTICE.