1
1

SFTP: provide the numerical error reason on failure

Этот коммит содержится в:
Daniel Stenberg 2010-11-10 17:26:02 +01:00
родитель 1c3e1c4d25
Коммит 82fa5d2167

Просмотреть файл

@ -245,7 +245,8 @@ int main(int argc, char *argv[])
libssh2_sftp_open(sftp_session, sftppath, LIBSSH2_FXF_READ, 0);
if (!sftp_handle) {
fprintf(stderr, "Unable to open file with SFTP\n");
fprintf(stderr, "Unable to open file with SFTP: %ld\n",
libssh2_sftp_last_error(sftp_session));
goto shutdown;
}
fprintf(stderr, "libssh2_sftp_open() is done, now receive data!\n");