1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

fix exception if remote upload fails on newer ssh client

This commit is contained in:
Martino Facchin 2016-02-04 11:46:28 +01:00
parent 629509f302
commit 8f524e14a5

View File

@ -135,7 +135,7 @@ public class SSHUploader extends Uploader {
return runUploadTool(ssh, prefs);
} catch (JSchException e) {
String message = e.getMessage();
if ("Auth cancel".equals(message) || "Auth fail".equals(message)) {
if (message.contains("Auth cancel") || message.contains("Auth fail") || message.contains("authentication fail")) {
return false;
}
if (e.getMessage().contains("Connection refused")) {