From 31a276bf2e477991d0856e3e6af82061200843a1 Mon Sep 17 00:00:00 2001 From: Miles Liu Date: Wed, 4 Jan 2023 15:12:28 +0800 Subject: [PATCH] ci: Rework CI log output (\n) --- contrib/touched-files-check/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/touched-files-check/src/main.rs b/contrib/touched-files-check/src/main.rs index 13cdd7eebee..5acc8d1fff9 100644 --- a/contrib/touched-files-check/src/main.rs +++ b/contrib/touched-files-check/src/main.rs @@ -104,8 +104,8 @@ fn main() { .expect("git error"); assert!(git_diff.status.success()); let touched_files = String::from_utf8(git_diff.stdout).expect("Invalid utf8"); - let (atts, builder_keys) = check(&touched_files).expect("ci check failed"); - check_attestations(atts, builder_keys).expect("ci check failed"); + let (atts, builder_keys) = check(&touched_files).unwrap_or_else(|e| panic!("ci check failed:\n\n{e}\n\n")); + check_attestations(atts, builder_keys).unwrap_or_else(|e| panic!("ci check failed:\n\n{e}\n\n")); } #[test]