Skip to content

Commit

Permalink
fix(core): do not ignore error while sending starting message
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjentix committed May 3, 2024
1 parent d7e6390 commit 8abf4c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions elfo-core/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ async fn start_entrypoints(ctx: &Context, topology: &Topology, is_check_only: bo
match response {
Ok(Ok(())) => Ok(()),
Ok(Err(e)) => Err(StartError::single(group.name.clone(), e.reason)),
Err(RequestError::Ignored) => Ok(()),
Err(RequestError::Failed) => Err(StartError::single(
Err(RequestError::Ignored) | Err(RequestError::Failed) => Err(StartError::single(
group.name.clone(),
"config cannot be delivered to the entrypoint".into(),
)),
Expand All @@ -77,8 +76,7 @@ async fn start_entrypoints(ctx: &Context, topology: &Topology, is_check_only: bo
.collect();
Err(StartError::multiple(group_errors))
}
Err(RequestError::Ignored) => Ok(()),
Err(RequestError::Failed) => Err(StartError::single(
Err(RequestError::Ignored) | Err(RequestError::Failed) => Err(StartError::single(
group.name,
"starting message cannot be delivered to the entrypoint".into(),
)),
Expand Down

0 comments on commit 8abf4c0

Please sign in to comment.