From 9527202c5194453c029561d8ab3524abc68433db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Wed, 12 Jan 2022 00:52:39 +1300 Subject: [PATCH] Add RuntimeError::Set of related errors --- lib/src/error.rs | 5 +++++ 1 file changed, 5 insertions(+) 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.