Skip to content

Commit

Permalink
ref: display json open error
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesKimara committed Sep 28, 2021
1 parent 39af086 commit 1f17c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api_script_test.go
Expand Up @@ -29,7 +29,7 @@ func TestScriptUnmarshal(t *testing.T) {
func testStructGotWant(t *testing.T, fp string, got interface{}, want interface{}) {
bytes, err := ioutil.ReadFile(fp)
if err != nil {
t.Fatalf("an error ocurred while trying to read json test file %s", fp)
t.Fatalf("failed to open json test file %s with err %v", fp, err)
}

if err := json.Unmarshal(bytes, got); err != nil {
Expand Down

0 comments on commit 1f17c84

Please sign in to comment.