brainboxdotcc / DPP

C++ Discord API Bot Library - D++ is Lightweight and scalable for small and huge bots!
https://dpp.dev/
Apache License 2.0
1.05k stars 159 forks source link

fix: fix bug in human readable errors #1077

Closed Mishura4 closed 7 months ago

Mishura4 commented 7 months ago

The error parser would stop at the first field (here "thumbnail") on something like this, and show "Invalid Form Body":

{
    "message": "Invalid Form Body",
    "code": 50035,
    "errors": {
        "embeds": {
            "0": {
                "thumbnail": {
                    "url": {
                        "_errors": [
                            {"code": "URL_TYPE_INVALID_URL", "message": "Not a well formed URL."}
                        ]
                    }
                }
            }
        }
    }
}

Code change checklist

netlify[bot] commented 7 months ago

Deploy Preview for dpp-dev ready!

Name Link
Latest commit 6a47c6e84ea26065a02821cc6fb53b72ae664741
Latest deploy log https://app.netlify.com/sites/dpp-dev/deploys/65bed1fd7888af0008c137bb
Deploy Preview https://deploy-preview-1077--dpp-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.