JAL-4036 Changes made from code review CR-JAL-265
[jalview.git] / src / jalview / fts / service / uniprot / UniProtFTSRestClient.java
index 05ccba7..88397f5 100644 (file)
@@ -95,7 +95,7 @@ public class UniProtFTSRestClient extends FTSRestClient
   {
     super();
     this.clearCursors();
-    uniprotSearchEndpoint = Cache.getDefault("UNIPROT_DOMAIN",
+    uniprotSearchEndpoint = Cache.getDefault("UNIPROT_2022_DOMAIN",
             DEFAULT_UNIPROT_DOMAIN) + "/uniprotkb/search";
   }
 
@@ -247,7 +247,8 @@ public class UniProtFTSRestClient extends FTSRestClient
               uniprotRestRequest, xTotalResults);
     } catch (Exception e)
     {
-      Console.debug("Exception caught from response", e);
+      Console.warn("Problem with the query: " + e.getMessage());
+      Console.debug("Exception stacktrace:", e);
       String exceptionMsg = e.getMessage();
       if (exceptionMsg.contains("SocketException"))
       {
@@ -545,8 +546,7 @@ public class UniProtFTSRestClient extends FTSRestClient
       }
     } catch (MalformedURLException e)
     {
-      // TODO Auto-generated catch block
-      e.printStackTrace();
+      Console.warn("Could not obtain next page 'cursor' value from 'u");
     }
     return null;
   }