From 492438f895e6a31bac38c34ebf5f893928eebcd0 Mon Sep 17 00:00:00 2001 From: Pranas Kiziela Date: Mon, 14 Oct 2019 10:58:59 +0300 Subject: [PATCH] Expose error_subcode property for errors --- response.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/response.go b/response.go index 46a9d71..473797d 100644 --- a/response.go +++ b/response.go @@ -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