Commit 043264ca authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

communicator/ssh: more error handlingin Upload

parent a46c7afc
......@@ -160,7 +160,10 @@ func (c *comm) Upload(path string, input io.Reader) error {
return err
}
io.Copy(w, input_memory)
if _, err := io.Copy(w, input_memory); err != nil{
return err
}
fmt.Fprint(w, "\x00")
err = checkSCPStatus(stdoutR)
if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment