Skip to content
Myr

cmd: Use Fatalf instead of Fatal

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Albert Nigmatzianov · committed by Albert Nigmatzianov · parent 76a9a66 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:cobra/cmd/project_test.go+1 added-1 removed
9 unmodified lines
10 if path == "" {11 t.Fatal("findPackage didn't find the existing package")12 }13 if !hasGoPathPrefix(path) {14 t.Fatal("%q is not in GOPATH, but must be", path)14 t.Fatalf("%q is not in GOPATH, but must be", path)15 }16}1718func hasGoPathPrefix(path string) bool {
7 unmodified lines