From 1f71efb1ed912cec17c835f85477977329fbf78c Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Sun, 22 Apr 2018 20:44:53 +0300 Subject: [PATCH] update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c4c0dcc..62afc0d 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,12 @@ func main() { Limit: 20, Page: 1, },) - if err.ErrorMsg != "" { + if err.RuntimeErr != nil { fmt.Printf("%v", err.ErrorMsg) } if status >= http.StatusBadRequest { - fmt.Printf("%v", err.ErrorMsg) + fmt.Printf("%v", err.ApiError()) } for _, value := range data.Orders { @@ -67,12 +67,12 @@ func main() { }, }, ) - if err.ErrorMsg != "" { + if err.RuntimeErr != nil { fmt.Printf("%v", err.ErrorMsg) } if status >= http.StatusBadRequest { - fmt.Printf("%v", err.ErrorMsg) + fmt.Printf("%v", err.ApiError()) } fmt.Println(idata.processedOffersCount)