1
0
mirror of synced 2024-11-22 12:56:06 +03:00

Merge pull request #68 from pranas/feature/error-subcode

Expose error_subcode property for errors
This commit is contained in:
Harrison Shoebridge 2019-10-14 19:44:41 +11:00 committed by GitHub
commit 48370aae6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,10 +68,11 @@ type QueryResponse struct {
// QueryError is representing an error sent back by Facebook
type QueryError struct {
Message string `json:"message"`
Type string `json:"type"`
Code int `json:"code"`
FBTraceID string `json:"fbtrace_id"`
Message string `json:"message"`
Type string `json:"type"`
Code int `json:"code"`
ErrorSubcode int `json:"error_subcode"`
FBTraceID string `json:"fbtrace_id"`
}
// QueryError implements error