JAL-629 even more console debug for --structureviewer opening arguments
[jalview.git] / 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(