Skip to content

Commit 95b5f99

Browse files
authored
Merge pull request #2472 from Kobzol/error-propagation
Show error when comparison comment cannot be posted
2 parents 9d22298 + 1983f9c commit 95b5f99

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

site/src/github/comparison_summary.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ async fn calculate_metric_comparison(
8383
.await
8484
{
8585
Ok(Some(c)) => Ok(c),
86-
_ => Err("ERROR categorizing benchmark run!".to_owned()),
86+
Ok(None) => {
87+
Err("Error occured while categorizing benchmark run (missing comparison).".to_string())
88+
}
89+
Err(error) => Err(format!(
90+
"Error occured while categorizing benchmark run:\n\n```{error}```"
91+
)),
8792
}
8893
}
8994

0 commit comments

Comments
 (0)