diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-02-02 20:23:45 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-02-02 20:23:45 +0200 |
commit | 1c87d349efa2556005b5d41f05db8b704a883eb5 (patch) | |
tree | 44130676a28da957ee91182e33cec9bdfe3e130c | |
parent | 9886cfd48b7e53b95120dc00dce4225b05df99e4 (diff) | |
download | radicle-ci-broker-1c87d349efa2556005b5d41f05db8b704a883eb5.tar.gz |
fix: if no adapter is available, print error message, don't give up
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rw-r--r-- | src/bin/ci-broker.rs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/bin/ci-broker.rs b/src/bin/ci-broker.rs index d3300fc..f09cd14 100644 --- a/src/bin/ci-broker.rs +++ b/src/bin/ci-broker.rs @@ -91,17 +91,16 @@ fn fallible_main() -> Result<(), BrokerError> { let mut run = Run::default(); if let Some(adapter) = broker.adapter(&rid) { adapter.run(&req, &mut run)?; + println!( + "Run CI run #{}: {}, {} -> {}", + counter, + rid, + oid, + run.result().unwrap() + ); } else { - return Err(BrokerError::NoAdapter(rid)); + eprintln!("ERROR: no adapter available for repository {rid}: not running CI"); } - - println!( - "Run CI run #{}: {}, {} -> {}", - counter, - rid, - oid, - run.result().unwrap() - ); } } } |