Fix SftpService to access SftpException ID directly via the 'id' field for improved error message formatting.
This commit is contained in:
@@ -120,7 +120,7 @@ public class SftpService {
|
|||||||
* Build a user-visible message from JSch SftpException (getMessage() is often null).
|
* Build a user-visible message from JSch SftpException (getMessage() is often null).
|
||||||
*/
|
*/
|
||||||
public static String formatSftpExceptionMessage(SftpException e, String path, String operation) {
|
public static String formatSftpExceptionMessage(SftpException e, String path, String operation) {
|
||||||
int id = e.getId();
|
int id = e.id;
|
||||||
String serverMsg = e.getMessage();
|
String serverMsg = e.getMessage();
|
||||||
String reason = sftpErrorCodeToMessage(id);
|
String reason = sftpErrorCodeToMessage(id);
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
Reference in New Issue
Block a user