Skip to content

Commit

Permalink
Fix broken test due to linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dopey committed Feb 3, 2022
1 parent 62690ab commit 5f4ac5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion errs/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (e *Error) UnmarshalJSON(data []byte) error {
return err
}
e.Status = er.Status
e.Err = errors.New(er.Message)
e.Err = fmt.Errorf("%s", er.Message)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion errs/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestError_UnmarshalJSON(t *testing.T) {
t.Errorf("Error.UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr)
}
if !reflect.DeepEqual(tt.expected, e) {
t.Errorf("Error.UnmarshalJSON() wants = %v, got %v", tt.expected, e)
t.Errorf("Error.UnmarshalJSON() wants = %+v, got %+v", tt.expected, e)
}
})
}
Expand Down

0 comments on commit 5f4ac5b

Please sign in to comment.