Skip to content

Commit

Permalink
log instead of print
Browse files Browse the repository at this point in the history
  • Loading branch information
estroz committed Nov 5, 2018
1 parent a8cbcf6 commit 3106b38
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/util/projutil/project_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package projutil

import (
"fmt"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -60,8 +59,7 @@ func MustGoProjectCmd(cmd *cobra.Command) {
switch t {
case OperatorTypeGo:
default:
fmt.Fprintf(os.Stderr, "'%s' is meant for Go projects.\n", cmd.CommandPath())
os.Exit(1)
log.Fatalf("'%s' is meant for Go projects.\n", cmd.CommandPath())
}
}

Expand Down

0 comments on commit 3106b38

Please sign in to comment.