airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject airavata git commit: throw jsch instead of ssh exceptin in ssh make directory api
Date Fri, 22 Apr 2016 19:39:06 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop 2a30f80e6 -> 26fd7c328


throw jsch instead of ssh exceptin in ssh make directory api


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/26fd7c32
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/26fd7c32
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/26fd7c32

Branch: refs/heads/develop
Commit: 26fd7c328da3a5a2344ac7d251fb2f972c62dbd4
Parents: 2a30f80
Author: Shameera Rathnayaka <shameerainfo@gmail.com>
Authored: Fri Apr 22 15:39:01 2016 -0400
Committer: Shameera Rathnayaka <shameerainfo@gmail.com>
Committed: Fri Apr 22 15:39:01 2016 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/airavata/gfac/impl/SSHUtils.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/26fd7c32/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/SSHUtils.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/SSHUtils.java
b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/SSHUtils.java
index a8e1017..cd5651e 100644
--- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/SSHUtils.java
+++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/SSHUtils.java
@@ -443,11 +443,11 @@ public class SSHUtils {
 
 			channel.disconnect();
 //            session.disconnect();
-
-			throw new SSHApiException("Unable to retrieve command output. Command - " + command +
+			log.error("Unable to retrieve command output. Command - " + command +
 					" on server - " + session.getHost() + ":" + session.getPort() +
 					" connecting user name - "
-					+ session.getUserName(), e);
+					+ session.getUserName());
+			throw e;
 		}
 		stdOutReader.onOutput(channel);
 		if (stdOutReader.getStdErrorString().contains("mkdir:")) {


Mime
View raw message