forked from cloudflare/terraform-provider-cloudflare
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter: Propagate schema validation error to end user
cloudflare#848 introduced better validation for filters using the Terraform schema. Despite handling the error, the error wasn't returned to the end user and instead the RPC exception is shown the end user. ``` Error: rpc error: code = Unavailable desc = transport is closing ``` This fixes the user experience by returning the errors which now passes the exception onto the end user instead of swallowing it or causing a panic.
- Loading branch information
1 parent
22c22ec
commit c3010c0
Showing
2 changed files
with
41 additions
and
1 deletion.
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