Skip to content

Commit

Permalink
add missing escape at end of cli app
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Nov 1, 2018
1 parent 92648e0 commit cf2363f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ func Run() {

err := app.Run(os.Args)
if err != nil {
fmt.Printf("\nerror: %s", err.Error())
fmt.Fprintf(os.Stderr, "\nerror: %s", err.Error())
}
fmt.Fprintf(os.Stderr, "\r\n")
}

func saveDefaultConfig(c *cli.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion src/croc/recipient.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ func (cr *Croc) receive(forceSend int, serverAddress string, tcpPorts []string,
if useStdout {
cr.FileInfo.Name = "stdout"
}
fmt.Fprintf(os.Stderr, "\nReceived %s written to %s (%2.1f %s)\n", folderOrFile, cr.FileInfo.Name, transferRate, transferType)
fmt.Fprintf(os.Stderr, "\nReceived %s written to %s (%2.1f %s)", folderOrFile, cr.FileInfo.Name, transferRate, transferType)
os.Remove(progressFile)
cr.StateString = fmt.Sprintf("Received %s written to %s (%2.1f %s)", folderOrFile, cr.FileInfo.Name, transferRate, transferType)
}
Expand Down

0 comments on commit cf2363f

Please sign in to comment.