feat: implement take errors
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2025-11-15 14:47:24 +01:00
parent cbe049b6a2
commit 8c0128612f
2 changed files with 5 additions and 1 deletions

2
Cargo.lock generated
View File

@@ -222,7 +222,7 @@ dependencies = [
[[package]]
name = "notmad"
version = "0.8.1"
version = "0.9.0"
dependencies = [
"anyhow",
"async-trait",

View File

@@ -166,6 +166,10 @@ impl AggregateError {
pub fn get_errors(&self) -> &[MadError] {
&self.errors
}
pub fn take_errors(self) -> Vec<MadError> {
self.errors
}
}
impl Display for AggregateError {