Skip to content

Commit

Permalink
Clarify method producing error in messages
Browse files Browse the repository at this point in the history
  • Loading branch information
drags committed Nov 7, 2019
1 parent 68f18d3 commit d22adad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posts.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (p *Pinboard) AddPost(pp Post, keep bool, toread bool) error {
func (p *Pinboard) DeletePost(dUrl string) error {
u, err := url.Parse(APIBase + "posts/delete")
if err != nil {
return fmt.Errorf("Unable to parse delete url %v", err)
return fmt.Errorf("Unable to parse DeletePost url %v", err)
}

q := u.Query()
Expand All @@ -194,7 +194,7 @@ func (p *Pinboard) DeletePost(dUrl string) error {

_, err = p.Get(u.String())
if err != nil {
return fmt.Errorf("Error from delete request %v", err)
return fmt.Errorf("Error from DeletePost request %v", err)
}

return nil
Expand Down

0 comments on commit d22adad

Please sign in to comment.