From 028dbea7b4d76fb62d77d52879c37316eaca5d93 Mon Sep 17 00:00:00 2001 From: James Procter Date: Wed, 20 Sep 2023 18:03:37 +0100 Subject: [PATCH] =?utf8?q?JAL-4285=20don=E2=80=99t=20say=20you=20are=20repor?= =?utf8?q?ting=20warnings/errors=20when=20there=20are=20none..?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/bin/Commands.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/jalview/bin/Commands.java b/src/jalview/bin/Commands.java index 36d8e88..faa5e43 100644 --- a/src/jalview/bin/Commands.java +++ b/src/jalview/bin/Commands.java @@ -149,10 +149,14 @@ public class Commands } - // report errors - Console.warn( - "The following errors and warnings occurred whilst processing files:\n" - + errorsToString()); + // report errors - if any + String errorsRaised = errorsToString(); + if (errorsRaised.trim().length() > 0) + { + Console.warn( + "The following errors and warnings occurred whilst processing files:\n" + + errorsRaised); + } // gui errors reported in Jalview if (argParser.getBoolean(Arg.QUIT)) -- 1.7.10.2