You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using sftp I tried to read a a file for which I have no permissions. I could libssh2_sftp_open and libssh2_sftp_stat fine, but libssh2_sftp_read returned LIBSSH2_ERROR_BAD_USE
Expected behavior
The error I got was too generic. I was expecting to be able to get a more descriptive error that helps the user overcome the issue (i.e: "not enough permissions"), is it possible to get such an error? If so, how?
This discussion was converted from issue #1311 on January 22, 2024 09:50.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe the bug
Using sftp I tried to read a a file for which I have no permissions. I could
libssh2_sftp_open
andlibssh2_sftp_stat
fine, butlibssh2_sftp_read
returnedLIBSSH2_ERROR_BAD_USE
Expected behavior
The error I got was too generic. I was expecting to be able to get a more descriptive error that helps the user overcome the issue (i.e: "not enough permissions"), is it possible to get such an error? If so, how?
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions