diff --git a/ofborg/src/bin/github-comment-poster.rs b/ofborg/src/bin/github-comment-poster.rs index 1f41e5c..835c5fc 100644 --- a/ofborg/src/bin/github-comment-poster.rs +++ b/ofborg/src/bin/github-comment-poster.rs @@ -67,7 +67,7 @@ fn main() { cfg.github(), )), easyamqp::ConsumeConfig { - queue: "build-inputs".to_owned(), + queue: "build-results".to_owned(), consumer_tag: format!("{}-github-comment-poster", cfg.whoami()), no_local: false, no_ack: false, diff --git a/ofborg/src/tasks/githubcommentposter.rs b/ofborg/src/tasks/githubcommentposter.rs index fddb275..ae93ce0 100644 --- a/ofborg/src/tasks/githubcommentposter.rs +++ b/ofborg/src/tasks/githubcommentposter.rs @@ -31,11 +31,11 @@ impl worker::SimpleWorker for GitHubCommentPoster { return match serde_json::from_slice(body) { Ok(e) => Ok(e), Err(e) => { - println!( - "Failed to deserialize BuildResult: {:?}", - String::from_utf8(body.clone()) - ); - panic!("{:?}", e); + Err(format!( + "Failed to deserialize BuildResult: {:?}, err: {:}", + String::from_utf8_lossy(&body.clone()), + e + )) } }; }