Skip to content

Commit

Permalink
use ` instead of " in Errorf string
Browse files Browse the repository at this point in the history
  • Loading branch information
sinadarbouy committed Jul 16, 2024
1 parent 93caa56 commit 0e7c86f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,14 +481,14 @@ func (c *Config) ValidateGlobalConfig(ctx context.Context) *gerr.GatewayDError {
// Each proxy in the server configuration should be referenced in proxies configuration.
for serverName, server := range globalConfig.Servers {
if len(server.Proxies) == 0 {
err := fmt.Errorf("\"servers.%s\" has no proxies defined", serverName)
err := fmt.Errorf(`"servers.%s" has no proxies defined`, serverName)
span.RecordError(err)
errors = append(errors, gerr.ErrValidationFailed.Wrap(err))
continue
}
for _, proxyName := range server.Proxies {
if _, exists := c.globalDefaults.Proxies[proxyName]; !exists {
err := fmt.Errorf("\"servers.%s\" references a non-existent proxy \"%s\"", serverName, proxyName)
err := fmt.Errorf(`"servers.%s" references a non-existent proxy "%s"`, serverName, proxyName)
span.RecordError(err)
errors = append(errors, gerr.ErrValidationFailed.Wrap(err))
}
Expand Down

0 comments on commit 0e7c86f

Please sign in to comment.