Skip to content

Commit

Permalink
* Store error id in response
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Jun 22, 2015
1 parent a2a5318 commit b85020c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type Response struct {
Output ResponseData
Headers http.Header
IsError bool
ErrorId string
InternalError error
RedirectInFragment bool

Expand Down Expand Up @@ -75,6 +76,7 @@ func (r *Response) SetErrorUri(id string, description string, uri string, state

// set error parameters
r.IsError = true
r.ErrorId = id
r.StatusCode = r.ErrorStatusCode
if r.StatusCode != 200 {
r.StatusText = description
Expand Down

0 comments on commit b85020c

Please sign in to comment.