Add RuntimeError::Set of related errors

This commit is contained in:
Félix Saparelli 2022-01-12 00:52:39 +13:00
parent 6a541e5f27
commit 9527202c51
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474

View file

@ -236,6 +236,11 @@ pub enum RuntimeError {
#[source]
err: Box<dyn std::error::Error + Send + Sync>,
},
/// A set of related [`RuntimeError`]s.
#[error("related: {0:?}")]
#[diagnostic(code(watchexec::runtime::set))]
Set(#[related] Vec<RuntimeError>),
}
/// Errors occurring from reconfigs.