JAL-629 Fix a test and omit an incorrect error message for structureviewer=none
[jalview.git] / src / jalview / bin / Commands.java
index 0565111..9a85f1e 100644 (file)
@@ -582,8 +582,11 @@ public class Commands
 
           if (structureViewer == null)
           {
-            addError("Failed to import and open structure view for file '"
-                    + structureFile + "'.");
+            if (!StringUtils.equalsIgnoreCase(sViewerName, "none"))
+            {
+              addError("Failed to import and open structure view for file '"
+                      + structureFile + "'.");
+            }
             continue;
           }
           try