From 2bcc3f059929abb7319e06a9cb31e0e21cbbaee6 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 14 Aug 2023 17:12:01 -0400 Subject: [PATCH] Fix reporting of jaeger traces when diff does not match. The early exit was causing some traces to not be reported. --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 852f1cc..29728d7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,12 +28,13 @@ fn main() -> Result<(), Box> { fn main_body() -> Result<(), Box> { init_telemetry()?; - run_compare( + let compare_result = run_compare( std::env::args() .nth(1) .expect("Pass a single file into this script."), - )?; + ); shutdown_telemetry()?; + compare_result?; Ok(()) }