Skip to content

Commit 3106b38

Browse files
committed
log instead of print
1 parent a8cbcf6 commit 3106b38

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/util/projutil/project_util.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package projutil
1616

1717
import (
18-
"fmt"
1918
"log"
2019
"os"
2120
"path/filepath"
@@ -60,8 +59,7 @@ func MustGoProjectCmd(cmd *cobra.Command) {
6059
switch t {
6160
case OperatorTypeGo:
6261
default:
63-
fmt.Fprintf(os.Stderr, "'%s' is meant for Go projects.\n", cmd.CommandPath())
64-
os.Exit(1)
62+
log.Fatalf("'%s' is meant for Go projects.\n", cmd.CommandPath())
6563
}
6664
}
6765

0 commit comments

Comments
 (0)