mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-22 12:30:08 +00:00
not a CatchableError
This commit is contained in:
parent
931071e4de
commit
468e0815b3
@ -188,7 +188,7 @@ proc sendErrorResponse(peer: Peer,
|
|||||||
let responseBytes = encodeErrorMsg(InvalidRequest, err.formatMsg("msg"))
|
let responseBytes = encodeErrorMsg(InvalidRequest, err.formatMsg("msg"))
|
||||||
await stream.writeAllBytes(responseBytes)
|
await stream.writeAllBytes(responseBytes)
|
||||||
await stream.close()
|
await stream.close()
|
||||||
except CatchableError as err:
|
except Exception as err:
|
||||||
debug "Error during sendErrorResponse()", error = err.msg
|
debug "Error during sendErrorResponse()", error = err.msg
|
||||||
|
|
||||||
proc sendErrorResponse(peer: Peer,
|
proc sendErrorResponse(peer: Peer,
|
||||||
@ -201,7 +201,7 @@ proc sendErrorResponse(peer: Peer,
|
|||||||
let responseBytes = encodeErrorMsg(ServerError, errMsg)
|
let responseBytes = encodeErrorMsg(ServerError, errMsg)
|
||||||
await stream.writeAllBytes(responseBytes)
|
await stream.writeAllBytes(responseBytes)
|
||||||
await stream.close()
|
await stream.close()
|
||||||
except CatchableError as err:
|
except Exception as err:
|
||||||
debug "Error during sendErrorResponse()", error = err.msg
|
debug "Error during sendErrorResponse()", error = err.msg
|
||||||
|
|
||||||
proc sendNotificationMsg(peer: Peer, protocolId: string, requestBytes: Bytes) {.async} =
|
proc sendNotificationMsg(peer: Peer, protocolId: string, requestBytes: Bytes) {.async} =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user