mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-04 03:52:56 +00:00
seqwait: different error messages per variant
Would have been handy to get slightly more details in https://github.com/neondatabase/neon/issues/3109 refs https://github.com/neondatabase/neon/issues/3109
This commit is contained in:
committed by
Christian Schwarz
parent
807b110946
commit
b58f7710ff
@@ -11,11 +11,13 @@ use tokio::time::timeout;
|
||||
|
||||
/// An error happened while waiting for a number
|
||||
#[derive(Debug, PartialEq, Eq, thiserror::Error)]
|
||||
#[error("SeqWaitError")]
|
||||
pub enum SeqWaitError {
|
||||
/// The wait timeout was reached
|
||||
#[error("seqwait timeout was reached")]
|
||||
Timeout,
|
||||
|
||||
/// [`SeqWait::shutdown`] was called
|
||||
#[error("SeqWait::shutdown was called")]
|
||||
Shutdown,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user