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:
parent
7fbfe7cecc
commit
6b9cc84313
2 changed files with 39 additions and 31 deletions
8
main.go
8
main.go
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue