JAL-629 even more console debug for --structureviewer opening arguments
authorJames Procter <j.procter@dundee.ac.uk>
Fri, 7 Jul 2023 13:18:44 +0000 (14:18 +0100)
committerJames Procter <j.procter@dundee.ac.uk>
Fri, 7 Jul 2023 13:19:06 +0000 (14:19 +0100)
src/jalview/bin/Commands.java

index 84effe0..d83afed 100644 (file)
@@ -576,9 +576,9 @@ public class Commands
           }
           try
           {
+            while (sv.isBusy())
             {
-              while (sv.isBusy())
-                Thread.sleep(25);
+              Thread.sleep(25);
               if (sv.isBusy())
               {
                 Console.debug(
@@ -587,7 +587,7 @@ public class Commands
             }
           } catch (Exception x)
           {
-
+            Console.warn("Exception whilst waiting for structure viewer "+structureFilepath,x);
           }
           Console.debug("Successfully opened viewer for "+structureFilepath);
           String structureImageFilename = ArgParser.getValueFromSubValOrArg(