1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 05:11:06 +02:00

Simplified UI for sending directories

This commit is contained in:
Zack Scholl 2017-10-22 10:24:55 -06:00
parent 7fbfe7cecc
commit 6b9cc84313
2 changed files with 39 additions and 31 deletions

View file

@ -59,8 +59,12 @@ func main() {
r := NewRelay(flags)
r.Run()
} else {
c := NewConnection(flags)
err := c.Run()
c, err := NewConnection(flags)
if err != nil {
fmt.Printf("Error! Please submit the following error to https://github.com/schollz/croc/issues:\n\n'%s'\n\n", err.Error())
return
}
err = c.Run()
if err != nil {
fmt.Printf("Error! Please submit the following error to https://github.com/schollz/croc/issues:\n\n'%s'\n\n", err.Error())
}