Skip to content

Commit 04a2a98

Browse files
committedJan 24, 2017
Fatal error if bzr is not installed
If we get a "bzr not installed" error, the `repo` object is nil which causes a NPE panic on the next line. Probably better just to Fatal the test (which stops execution) instead of reporting a test failure and then immediately panicking.
1 parent 2b46764 commit 04a2a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bzr_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func TestBzr(t *testing.T) {
3131

3232
repo, err := NewBzrRepo("https://launchpad.net/govcstestbzrrepo", tempDir+"/govcstestbzrrepo")
3333
if err != nil {
34-
t.Error(err)
34+
t.Fatal(err)
3535
}
3636

3737
if repo.Vcs() != Bzr {

0 commit comments

Comments
 (0)
Please sign in to comment.