1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

Better ui

This commit is contained in:
Zack Scholl 2017-10-18 07:09:32 -06:00
parent eae21303f2
commit a058386d1b

View File

@ -223,8 +223,11 @@ func (c *Connection) runClient() {
if c.File.Hash != HashBytes(decrypted) {
fmt.Printf("\nUh oh! %s is corrupted! Sorry, try again.\n", c.File.Name)
} else {
fmt.Printf("\nDownloaded %s!", c.File.Name)
fmt.Printf("\nReceived file written to %s", c.File.Name)
}
} else {
fmt.Println("File sent.")
// TODO: Add confirmation
}
}