Skip to content

Commit 9872b56

Browse files
committed
fix: improved error handling in test
1 parent fc33ce3 commit 9872b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/theme-generator/builder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestGetTheme(t *testing.T) {
1313
_, e := themegenerator.GetTheme("../../test-assets/demo.jpeg", themegenerator.Platform(platform))
1414

1515
if e != nil {
16-
panic(e.Error())
16+
t.Fatal(e.Error())
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)