JAL-4114 additional warnings when PDBe doesn’t return as many responses as queries...
authorJim Procter <j.procter@dundee.ac.uk>
Fri, 20 Jan 2023 17:50:53 +0000 (17:50 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Fri, 20 Jan 2023 17:50:53 +0000 (17:50 +0000)
src/jalview/gui/structurechooser/ThreeDBStructureChooserQuerySource.java

index 8b4258f..28c41e9 100644 (file)
@@ -546,6 +546,11 @@ public class ThreeDBStructureChooserQuerySource
       try
       {
         resultList = pdbquery.executePDBFTSRestRequest(pdbRequest);
+        if (resultList.getNumberOfItemsFound() == 0)
+        {
+          Console.info("Unexpectedly returned no results for pdbe query: "
+                  + pdb_Query);
+        }
         results.add(resultList);
         lastPdbRequest = pdbRequest;
       } catch (Exception ex)