add missing escape at end of cli app

This commit is contained in:
Zack Scholl 2018-11-01 09:08:18 -07:00
parent 92648e0112
commit cf2363fd4e
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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)
}