diff options
author | Hans Nilsson <[email protected]> | 2018-06-21 10:38:51 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-06-21 10:41:34 +0200 |
commit | 182c7b954620e9287ba2ddce9b1cbaceb1bddbaf (patch) | |
tree | 33d427c5f4712bbe6ffc90d7e90290e8a290d3aa /lib/ssh/doc | |
parent | db6059a9217767a6e42e93cec05089c0ec977d20 (diff) | |
download | otp-182c7b954620e9287ba2ddce9b1cbaceb1bddbaf.tar.gz otp-182c7b954620e9287ba2ddce9b1cbaceb1bddbaf.tar.bz2 otp-182c7b954620e9287ba2ddce9b1cbaceb1bddbaf.zip |
ssh: Bug fix sftp error codes
Report the signal name if the signal error message is ""
Do not report a return code of 0 as an error.
Diffstat (limited to 'lib/ssh/doc')
-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> |