You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2021/07/29 19:57:05 UTC

[airavata-mft] branch develop updated: Minor error handling fix

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 <di...@gmail.com>
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());