Skip to content

Commit

Permalink
chore: fix validate
Browse files Browse the repository at this point in the history
  • Loading branch information
labasubagia committed Nov 29, 2024
1 parent 8112b5b commit 5ea5a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_movie.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (i *MovieInput) Validate() error {
}
_, err := url.ParseRequestURI(i.PosterURL)
if err != nil {
return NewErr(ErrInput, nil, "poster url is not a valid url")
return NewErr(ErrInput, err, "poster url is not a valid url")
}
if len(i.GenreIDs) == 0 {
return NewErr(ErrInput, nil, "genre ids is required")
Expand Down

0 comments on commit 5ea5a14

Please sign in to comment.