Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Send stderr to ioutil.discard and log more human readable error #14

Merged
merged 2 commits into from
May 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update cmd/coder/sync.go
Co-authored-by: Ammar Bandukwala <ammar@ammar.io>
  • Loading branch information
anthonyshull and ammario authored May 12, 2020
commit 2b03963176ae820b6f3574a512b835554da39d69
1 change: 1 addition & 0 deletions cmd/coder/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (cmd *syncCmd) RegisterFlags(fl *pflag.FlagSet) {
fl.BoolVarP(&cmd.init, "init", "i", false, "do inititial transfer and exit")
}

// See https://lxadm.com/Rsync_exit_codes#List_of_standard_rsync_exit_codes.
var NoRsync = errors.New("rsync: exit status 2")

func (cmd *syncCmd) Run(fl *pflag.FlagSet) {
Expand Down