Fix SftpService to access SftpException ID directly via the 'id' field for improved error message formatting.

This commit is contained in:
liumangmang
2026-02-04 14:55:41 +08:00
parent 7f57d69756
commit e792fb919d

View File

@@ -120,7 +120,7 @@ public class SftpService {
* Build a user-visible message from JSch SftpException (getMessage() is often null).
*/
public static String formatSftpExceptionMessage(SftpException e, String path, String operation) {
int id = e.getId();
int id = e.id;
String serverMsg = e.getMessage();
String reason = sftpErrorCodeToMessage(id);
StringBuilder sb = new StringBuilder();