From b1aeedb1078d614f1dc26218235afcc096a3c01b Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sat, 22 Sep 2018 06:14:19 -0700 Subject: [PATCH] tell server no --- src/recipient/recipient.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/recipient/recipient.go b/src/recipient/recipient.go index f16c7a2..c92d7e5 100644 --- a/src/recipient/recipient.go +++ b/src/recipient/recipient.go @@ -110,15 +110,14 @@ func receive(c *websocket.Conn, codephrase string) (err error) { if fstats.IsDir { fileOrFolder = "folder" } - if "y" != utils.GetInput(fmt.Sprintf( - `%s %s (%s) into: %s - ok? (y/N): `, + if "y" != utils.GetInput(fmt.Sprintf("%s %s (%s) into: %s\nok? (y/N): ", overwritingOrReceiving, fileOrFolder, humanize.Bytes(uint64(fstats.Size)), fstats.Name, )) { fmt.Fprintf(os.Stderr, "cancelling request") + c.WriteMessage(websocket.BinaryMessage, []byte("no")) return nil }