From 00478e9dee0db1e9906a12e0c92513e1d5d306a3 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Mon, 6 Apr 2020 06:40:53 -0400 Subject: [PATCH] update_status: also return a CommitStatusError --- ofborg/src/tasks/evaluate.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ofborg/src/tasks/evaluate.rs b/ofborg/src/tasks/evaluate.rs index feb56d2..bb0cc14 100644 --- a/ofborg/src/tasks/evaluate.rs +++ b/ofborg/src/tasks/evaluate.rs @@ -161,7 +161,7 @@ impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> { description: String, url: Option, state: hubcaps::statuses::State, - ) -> Result<(), hubcaps::Error> { + ) -> Result<(), CommitStatusError> { let description = if description.len() >= 140 { warn!( "description is over 140 char; truncating: {:?}", @@ -189,6 +189,7 @@ impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> { .statuses() .create(&self.job.pr.head_sha, &builder.build()) .map(|_| ()) + .map_err(|e| CommitStatusError::from(e)) } fn make_gist(