Skip to content

Commit

Permalink
Merge pull request #394 from tomleb/dev
Browse files Browse the repository at this point in the history
Fix dereference wrong error
  • Loading branch information
PantsuDev authored May 12, 2017
2 parents a3bf2ec + 6aa4e8b commit dc89495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions router/rssHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ func RSSHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", "*")
rss, rssErr := feed.ToRss()
if rssErr != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
http.Error(w, rssErr.Error(), http.StatusInternalServerError)
}

_, writeErr := w.Write([]byte(rss))
if writeErr != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
http.Error(w, writeErr.Error(), http.StatusInternalServerError)
}
}

0 comments on commit dc89495

Please sign in to comment.