Merge pull request #68 from pranas/feature/error-subcode
Expose error_subcode property for errors
This commit is contained in:
commit
48370aae6e
@ -68,10 +68,11 @@ type QueryResponse struct {
|
|||||||
|
|
||||||
// QueryError is representing an error sent back by Facebook
|
// QueryError is representing an error sent back by Facebook
|
||||||
type QueryError struct {
|
type QueryError struct {
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Code int `json:"code"`
|
Code int `json:"code"`
|
||||||
FBTraceID string `json:"fbtrace_id"`
|
ErrorSubcode int `json:"error_subcode"`
|
||||||
|
FBTraceID string `json:"fbtrace_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryError implements error
|
// QueryError implements error
|
||||||
|
Loading…
Reference in New Issue
Block a user