Skip to content

Commit

Permalink
Update internal/dataplane/sendconfig/inmemory.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Warczarek <[email protected]>
  • Loading branch information
randmonkey and programmer04 authored Sep 14, 2023
1 parent 50ba889 commit def00be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dataplane/sendconfig/inmemory.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (s UpdateStrategyInMemory) Update(ctx context.Context, targetState ContentW
flattenErrors := shouldUseFlattenedErrors(s.version)
if errBody, err := s.configService.ReloadDeclarativeRawConfig(ctx, bytes.NewReader(config), true, flattenErrors); err != nil {
if len(errBody) == 0 {
// if we failed to get response in reloading config, we put the error from reloading in the parseErr return value
// If we failed to get response in reloading config, we put the error from reloading in the parseErr return value
// to generate a proper error log.
return err, nil, err
}
Expand Down

0 comments on commit def00be

Please sign in to comment.