Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2016-04-04 18:51:49 +0000
committerThomas Wolf2016-04-22 19:17:55 +0000
commit817d55989953f6d4a1f206d92121f41c937dd8a5 (patch)
tree4e2475ce4c052a0fd63fe9849a890a53dc445ce6 /bundles
parenta0cc0d24778652f7ab3ce880ff84fde0b082469d (diff)
downloadeclipse.platform.team-817d55989953f6d4a1f206d92121f41c937dd8a5.tar.gz
eclipse.platform.team-817d55989953f6d4a1f206d92121f41c937dd8a5.tar.xz
eclipse.platform.team-817d55989953f6d4a1f206d92121f41c937dd8a5.zip
Not having a known_hosts file is not an error. Change-Id: I75938b6e07b26fc9a6b3bd0b3867a51e63b9fb2d Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchCorePlugin.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchCorePlugin.java b/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchCorePlugin.java
index df1427909..1d1c2608b 100644
--- a/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchCorePlugin.java
+++ b/bundles/org.eclipse.jsch.core/src/org/eclipse/jsch/internal/core/JSchCorePlugin.java
@@ -11,6 +11,7 @@
*******************************************************************************/
package org.eclipse.jsch.internal.core;
+import java.io.FileNotFoundException;
import java.util.Hashtable;
import java.util.ArrayList;
@@ -196,9 +197,11 @@ public class JSchCorePlugin extends Plugin{
getJSch().setKnownHosts(file.getPath());
}
catch(JSchException e){
- JSchCorePlugin.log(IStatus.ERROR, NLS.bind(
- "An error occurred while loading the know hosts file {0}", file //$NON-NLS-1$
- .getAbsolutePath()), e);
+ if (!(e.getCause() instanceof FileNotFoundException)) {
+ JSchCorePlugin.log(IStatus.ERROR, NLS.bind(
+ "An error occurred while loading the know hosts file {0}", file //$NON-NLS-1$
+ .getAbsolutePath()), e);
+ }
}
needToLoadKnownHosts=false;
}

Back to the top