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
4e98595
commit 8a60321
Showing
3 changed files
with
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:enhancement | ||
cloudflare: expose `Messages` from the `Response` object | ||
``` |
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