diff options
author | Erlang/OTP <[email protected]> | 2018-06-21 17:32:58 +0200 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2018-06-21 17:32:58 +0200 |
commit | 0b8b20d92795d3fad9e2f1903044b37d28b7092a (patch) | |
tree | 03e40d7ef1425e932e8333d1104545d2d809b764 /lib/ssh/doc/src/ssh_sftp.xml | |
parent | 0217f37bd9c0e16cc80b42c2a05c36504b4096ff (diff) | |
parent | f8cbae5c79f988de4110e4827420ad073a1c7fcb (diff) | |
download | otp-0b8b20d92795d3fad9e2f1903044b37d28b7092a.tar.gz otp-0b8b20d92795d3fad9e2f1903044b37d28b7092a.tar.bz2 otp-0b8b20d92795d3fad9e2f1903044b37d28b7092a.zip |
Merge branch 'hans/ssh/sftp_error_codes/ERIERL-194/OTP-15148' into maint-20
* hans/ssh/sftp_error_codes/ERIERL-194/OTP-15148:
ssh: Report the signal name if there is an exit-signal to sftpd
ssh: Bug fix sftp error codes
Diffstat (limited to 'lib/ssh/doc/src/ssh_sftp.xml')
-rw-r--r-- | lib/ssh/doc/src/ssh_sftp.xml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ssh/doc/src/ssh_sftp.xml b/lib/ssh/doc/src/ssh_sftp.xml index 129426a6d5..f367560b5f 100644 --- a/lib/ssh/doc/src/ssh_sftp.xml +++ b/lib/ssh/doc/src/ssh_sftp.xml @@ -46,9 +46,9 @@ <taglist> <tag><c>reason()</c></tag> <item> - <p>= <c>atom()</c> A description of the reason why an operation failed.</p> + <p>= <c>atom() | string() | tuple() </c>A description of the reason why an operation failed.</p> <p> - The value is formed from the sftp error codes in the protocol-level responses as defined in + The <c>atom()</c> value is formed from the sftp error codes in the protocol-level responses as defined in <url href="https://tools.ietf.org/id/draft-ietf-secsh-filexfer-13.txt">draft-ietf-secsh-filexfer-13.txt</url> section 9.1. </p> @@ -57,6 +57,10 @@ E.g. the error code <c>SSH_FX_NO_SUCH_FILE</c> will cause the <c>reason()</c> to be <c>no_such_file</c>. </p> + <p>The <c>string()</c> reason is the error information from the server in case of an exit-signal. If that information is empty, the reason is the exit signal name. + </p> + <p>The <c>tuple()</c> reason are other errors like the <c>{exit_status,integer()}</c> if the exit status is not 0. + </p> </item> <tag><c>ssh_connection_ref() =</c></tag> |