We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6f1a63 commit 76b1df5Copy full SHA for 76b1df5
main.go
@@ -5,13 +5,13 @@ package main
5
//go:generate git tag -af v$VERSION -m "v$VERSION"
6
7
import (
8
+ "fmt"
9
"os"
10
"os/signal"
11
"syscall"
12
13
"github.com/schollz/croc/v10/src/cli"
14
"github.com/schollz/croc/v10/src/utils"
- log "github.com/schollz/logger"
15
)
16
17
func main() {
@@ -38,16 +38,16 @@ func main() {
38
39
go func() {
40
if err := cli.Run(); err != nil {
41
- log.Error(err)
+ fmt.Println(err)
42
+ os.Exit(1)
43
}
44
// Exit the program gracefully
45
utils.RemoveMarkedFiles()
46
os.Exit(0)
47
}()
48
49
// Wait for a termination signal
- sig := <-sigs
50
- log.Debugf("Received signal:", sig)
+ _ = <-sigs
51
52
53
0 commit comments