mirror of https://github.com/vacp2p/nim-libp2p.git
change `SecioError` and `NoiseError` to descendants of `LPStreamError` (#1047)
This commit is contained in:
parent
42cd78e95b
commit
1609fd7197
|
@ -89,7 +89,7 @@ type
|
|||
readCs: CipherState
|
||||
writeCs: CipherState
|
||||
|
||||
NoiseError* = object of LPError
|
||||
NoiseError* = object of LPStreamError
|
||||
NoiseHandshakeError* = object of NoiseError
|
||||
NoiseDecryptTagError* = object of NoiseError
|
||||
NoiseOversizedPayloadError* = object of NoiseError
|
||||
|
|
|
@ -73,7 +73,7 @@ type
|
|||
writerCoder: SecureCipher
|
||||
readerCoder: SecureCipher
|
||||
|
||||
SecioError* = object of LPError
|
||||
SecioError* = object of LPStreamError
|
||||
|
||||
func shortLog*(conn: SecioConn): auto =
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue