]> granicus.if.org Git - curl/commitdiff
include the libssh2 return code in the output for these failures to ease
authorDaniel Stenberg <daniel@haxx.se>
Thu, 29 Nov 2007 11:25:10 +0000 (11:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Nov 2007 11:25:10 +0000 (11:25 +0000)
debugging

lib/ssh.c

index 8b99d20f2960b184338ee3a3c6d899699f625d11..2d0271898da96230353e45ced07e2c00e6d39f2a 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -1736,7 +1736,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
         break;
       }
       else if(rc) {
-        infof(data, "Failed to get channel EOF\n");
+        infof(data, "Failed to get channel EOF: %d\n", rc);
       }
     }
     state(conn, SSH_SCP_WAIT_CLOSE);
@@ -1749,7 +1749,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
         break;
       }
       else if(rc) {
-        infof(data, "Channel failed to close\n");
+        infof(data, "Channel failed to close: %d\n", rc);
       }
     }
     state(conn, SSH_SCP_CHANNEL_FREE);