mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-02 11:39:24 +01:00
Log goldenPath for golden not found errors
This commit is contained in:
parent
f12cc8cdff
commit
a4ae3f83ad
@ -347,7 +347,7 @@ func CompareGoldens(t *testing.T, out, goldenName string) {
|
||||
expected, err := os.ReadFile(goldenPath)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
expected = []byte("ERR_FILE_NOT_FOUND")
|
||||
expected = []byte("ERR_FILE_NOT_FOUND:" + goldenPath)
|
||||
} else {
|
||||
Check(t, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user