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
Is it possible to make more detailed exceptions?
For example, I'm trying to upload the file which already exists on the server. _client.UploadFile(stream, "Uploads/filename.txt", false);
I'm receiving Common.SshException with InnerException=null and Message="Failure"
I also receiving the same exception with this code (when remote file name is not specified): _client.UploadFile(stream, "Uploads", false);
How can I understand where the bug is when all exceptions are the same?
As far as I understand, the protocol itself does not provide more specific information about the cause of the failure. What could be done is to provide some context, so in the first case you would get a SshException with the message Failed to upload file 'Uploads/filename.txt': Failure.
Would that help?
Activity
IgorMilavec commentedon Feb 12, 2022
As far as I understand, the protocol itself does not provide more specific information about the cause of the failure. What could be done is to provide some context, so in the first case you would get a
SshExceptionwith the messageFailed to upload file 'Uploads/filename.txt': Failure.Would that help?
Rob-Hague commentedon Oct 19, 2026
#1716 / 2025.1.0 improves it, notwithstanding the above mentioned limitation