Skip to content

Commit

Permalink
feat: show error when connection failed
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcarver committed Mar 13, 2024
1 parent e8858ac commit d795a32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is the official repository of the terraform provider for [RisingWave Cloud]

## Get Started

- [Example Usage](./docs/index.md)
- [Documentation](https://registry.terraform.io/providers/risingwavelabs/risingwavecloud/latest/docs)
- [DEVELOPING.md](./DEVELOPING.md)

## License
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (p *RisingWaveCloudProvider) Configure(ctx context.Context, req provider.Co
}
resp.Diagnostics.AddError(
"Failed to connect to the endpoint",
fmt.Sprintf("Please check your network connection or the endpoint provided, current endpoint: %s", endpoint),
fmt.Sprintf("Error %s, current endpoint: %s.", err.Error(), endpoint),
)
return
}
Expand Down

0 comments on commit d795a32

Please sign in to comment.