From 26d50fbc6a37e620bdbd4620bba203184874b670 Mon Sep 17 00:00:00 2001 From: Brice Videau Date: Tue, 1 Oct 2024 16:48:20 -0500 Subject: [PATCH] Update xprof/xprof.rb.in --- xprof/xprof.rb.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xprof/xprof.rb.in b/xprof/xprof.rb.in index adf590b7..6895702e 100755 --- a/xprof/xprof.rb.in +++ b/xprof/xprof.rb.in @@ -16,7 +16,8 @@ DATADIR = DATAROOTDIR class XprofExitCode @@exit_code = 0 def self.update(exit_code) - @@exit_code = exit_code unless exit_code.zero? + # Keep only the first error + @@exit_code = exit_code if @@exit_code == 0 end def self.get