ClientError base type struct -> string

This commit is contained in:
Jimmy Zelinskie
2014-07-24 19:34:17 -04:00
parent b08195aeef
commit 788b349dd7
2 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func (s *Server) stats(w http.ResponseWriter, r *http.Request, p httprouter.Para
}
func handleError(err error, w *Writer) (int, error) {
if _, ok := err.(*models.ClientError); ok {
if _, ok := err.(models.ClientError); ok {
w.WriteError(err)
stats.RecordEvent(stats.ClientError)
return http.StatusOK, nil