Skip to content

Commit

Permalink
Merge pull request #927 from professor-l/API-677/fix-error-logging-bug
Browse files Browse the repository at this point in the history
[API-677] Return correct error in ConfigQuery
  • Loading branch information
JulesFaucherre authored May 4, 2023
2 parents d710994 + e255781 commit 7afdc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (c *ConfigCompiler) ConfigQuery(
return legacyResponse, nil
}
if originalErr != nil {
return nil, fmt.Errorf("config compilation request returned an error: %w", err)
return nil, fmt.Errorf("config compilation request returned an error: %w", originalErr)
}

if statusCode != 200 {
Expand Down

0 comments on commit 7afdc21

Please sign in to comment.