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:
parent
629509f302
commit
8f524e14a5
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user