diff --git a/README.md b/README.md index 62afc0d..b16934a 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ func main() { Page: 1, },) if err.RuntimeErr != nil { - fmt.Printf("%v", err.ErrorMsg) + fmt.Printf("%v", err.Error()) } if status >= http.StatusBadRequest { @@ -68,7 +68,7 @@ func main() { }, ) if err.RuntimeErr != nil { - fmt.Printf("%v", err.ErrorMsg) + fmt.Printf("%v", err.Error()) } if status >= http.StatusBadRequest {