aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenauxg <19689618+Henauxg@users.noreply.github.com>2023-01-04 18:36:51 +0100
committergilles henaux <gill.henaux@gmail.com>2023-01-11 14:39:01 +0100
commitfbc7cc326a5a2e618bf2074edb18293590fd0430 (patch)
treebb12492e23e552552b4c0543e3a43a7127c7b36b /src
parent6fed432b5ba751c4bd1630c9289d951a26fe403f (diff)
[client] Add new error type NoDefaultChannel
Diffstat (limited to 'src')
-rw-r--r--src/shared.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared.rs b/src/shared.rs
index 4c5ae65..c4803a8 100644
--- a/src/shared.rs
+++ b/src/shared.rs
@@ -30,6 +30,8 @@ pub enum QuinnetError {
ConnectionClosed,
#[error("Channel with id `{0}` is unknown")]
UnknownChannel(ChannelId),
+ #[error("The connection has no default channel")]
+ NoDefaultChannel,
#[error("Endpoint is already closed")]
EndpointAlreadyClosed,
#[error("Failed serialization")]