From 7cf561358b16fecaf982ad907451a8a50f5fc7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Fri, 22 Dec 2017 20:04:33 +0200 Subject: [PATCH] return error of io.copy in GetFile --- server/server/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server/commands.go b/server/server/commands.go index 0894109..1395ce4 100644 --- a/server/server/commands.go +++ b/server/server/commands.go @@ -78,7 +78,7 @@ func GetFile(c Client, path string) (int64, error) { totalSend, err := io.Copy(c.Connection(), file) - return totalSend, nil + return totalSend, err } func sanitizeFilePath(path string) (string, bool) {