Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cloudflare: update
RequestError
to expose Messages
The messages field isn't really used broadly in the API as it was designed for informational feedback as opposed to errors, however, the page rules endpoint uses it to communicate validation failures. For these messages to be raised in other tools, namely the Terraform provider, it needs a dedicated field on the struct and to be included in the `Error()` method. Closes cloudflare/terraform-provider-cloudflare#1579
- Loading branch information
1 parent
68841bf
commit cf2084c
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters