diff --git a/Cargo.lock b/Cargo.lock index 8926884..ed9a927 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -222,7 +222,7 @@ dependencies = [ [[package]] name = "notmad" -version = "0.8.1" +version = "0.9.0" dependencies = [ "anyhow", "async-trait", diff --git a/crates/mad/src/lib.rs b/crates/mad/src/lib.rs index 935e7df..2dbef9c 100644 --- a/crates/mad/src/lib.rs +++ b/crates/mad/src/lib.rs @@ -166,6 +166,10 @@ impl AggregateError { pub fn get_errors(&self) -> &[MadError] { &self.errors } + + pub fn take_errors(self) -> Vec { + self.errors + } } impl Display for AggregateError {