This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-mft.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8794715  Minor error handling fix
8794715 is described below

commit 8794715ee14432dfda89ca50d2b5e395f8cda13c
Author: Dimuthu Wannipurage <[email protected]>
AuthorDate: Thu Jul 29 15:56:55 2021 -0400

    Minor error handling fix
---
 agent/src/main/java/org/apache/airavata/mft/agent/rpc/RPCParser.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/agent/src/main/java/org/apache/airavata/mft/agent/rpc/RPCParser.java 
b/agent/src/main/java/org/apache/airavata/mft/agent/rpc/RPCParser.java
index 0fd83cb..8cb454a 100644
--- a/agent/src/main/java/org/apache/airavata/mft/agent/rpc/RPCParser.java
+++ b/agent/src/main/java/org/apache/airavata/mft/agent/rpc/RPCParser.java
@@ -171,8 +171,10 @@ public class RPCParser {
                     String url = 
httpTransferRequestsStore.addDownloadRequest(transferRequest);
 
                     return (agentAdvertisedUrl.endsWith("/")? 
agentAdvertisedUrl : agentAdvertisedUrl + "/") + url;
+                } else {
+                    logger.error("Medata collector or connector is not 
available for store type {}", storeType);
+                    throw new Exception("Medata collector or connector is not 
available for store type " + storeType);
                 }
-                break;
         }
         logger.error("Unknown method type specified {}", request.getMethod());
         throw new Exception("Unknown method " + request.getMethod());

Reply via email to