mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
fix erroring
This commit is contained in:
parent
db911d1bce
commit
0ccc2685cf
2 changed files with 10 additions and 5 deletions
6
main.go
6
main.go
|
@ -47,7 +47,7 @@ func init() {
|
|||
}
|
||||
|
||||
func main() {
|
||||
|
||||
defer log.Flush()
|
||||
app := cli.NewApp()
|
||||
app.Name = "croc"
|
||||
app.Version = version
|
||||
|
@ -97,12 +97,12 @@ func main() {
|
|||
} else {
|
||||
c, err := NewConnection(appOptions)
|
||||
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())
|
||||
fmt.Printf("Error! Please submit the following error to https://github.com/schollz/croc/issues:\n\n'NewConnection: %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())
|
||||
fmt.Printf("Error! Please submit the following error to https://github.com/schollz/croc/issues:\n\n'Run: %s'\n\n", err.Error())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue