Permalink
Browse files

api: log unexpected status codes

  • Loading branch information...
hoffie committed Jul 28, 2015
1 parent 9a2ec96 commit 86d45d1070ee51f551da15d136fe2dfc4d04c3a0
Showing with 1 addition and 0 deletions.
  1. +1 −0 api/client/client.go
View
@@ -58,5 +58,6 @@ func (c *Client) doRequest(req *http.Request, expStatus ...int) (*http.Response,
return resp, nil
}
}
Log.Error("unexpected status", "got", resp.StatusCode, "wanted", expStatus)
return nil, ErrUnexpectedStatus
}

0 comments on commit 86d45d1

Please sign in to comment.