lgoldstein commented on issue #428:
URL: https://github.com/apache/mina-sshd/issues/428#issuecomment-1805470166

   Here is the problem: the OpenSSH server defines the missing file a WARNING 
(status=1) rather than an ERROR (status=2):
   
   >> 
receive(ScpHelper[ClientSessionImpl[lgoldstein@localhost/127.0.0.1:5252]]) 
ack=1: scp: 1234.txt: No such file or directory
   
   Therefore the code is correct in not treating this as an error. In order to 
allow user code to handle this otherwise, we will add a **new** method to the 
listener to enable user to reach their own decision. **Caveat emptor:** due to 
the way the code is written we can only provide the **raw** command that caused 
the error/warning and let the user decide whether to throw an exception or not.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to