mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 06:22:24 +02: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)
|
expected, err := os.ReadFile(goldenPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
expected = []byte("ERR_FILE_NOT_FOUND")
|
expected = []byte("ERR_FILE_NOT_FOUND:" + goldenPath)
|
||||||
} else {
|
} else {
|
||||||
Check(t, err)
|
Check(t, err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user