hello more inline errors
This commit is contained in:
committed by
Senan Kelly
parent
31693079ac
commit
f027d5a486
@@ -451,8 +451,7 @@ func (c *Controller) ServePodcastDeleteDo(r *http.Request) *Response {
|
||||
code: 400,
|
||||
}
|
||||
}
|
||||
err = c.Podcasts.DeletePodcast(user.ID, id)
|
||||
if err != nil {
|
||||
if err := c.Podcasts.DeletePodcast(user.ID, id); err != nil {
|
||||
return &Response{
|
||||
err: "please provide a valid podcast id",
|
||||
code: 400,
|
||||
|
||||
Reference in New Issue
Block a user