repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
5980138
parent
9aaa466
author
Antonio Mika
date
2023-11-10 17:16:02 +0000 UTC
Ignore error on status messages
1 files changed,  +3, -3
M wish/send/rsync/rsync.go
+3, -3
 1@@ -174,17 +174,17 @@ func Middleware(writeHandler utils.CopyFromClientHandler) wish.Middleware {
 2 					fileHandler.ignoreTimes = opts.IgnoreTimes
 3 
 4 					if *compress {
 5-						session.Stderr().Write([]byte("compression is currently unsupported\r\n"))
 6+						_, _ = session.Stderr().Write([]byte("compression is currently unsupported\r\n"))
 7 						return
 8 					}
 9 
10 					if opts.PreserveUid {
11-						session.Stderr().Write([]byte("uid preservation will not work as we don't retain user information\r\n"))
12+						_, _ = session.Stderr().Write([]byte("uid preservation will not work as we don't retain user information\r\n"))
13 						return
14 					}
15 
16 					if opts.PreserveGid {
17-						session.Stderr().Write([]byte("gid preservation will not work as we don't retain user information\r\n"))
18+						_, _ = session.Stderr().Write([]byte("gid preservation will not work as we don't retain user information\r\n"))
19 						return
20 					}
21