diff --git a/lib/src/error.rs b/lib/src/error.rs index d4880a5..359bf8a 100644 --- a/lib/src/error.rs +++ b/lib/src/error.rs @@ -236,6 +236,11 @@ pub enum RuntimeError { #[source] err: Box, }, + + /// A set of related [`RuntimeError`]s. + #[error("related: {0:?}")] + #[diagnostic(code(watchexec::runtime::set))] + Set(#[related] Vec), } /// Errors occurring from reconfigs.