Plugins: Wrap original check health error (#69944)

Fixes #69765
This commit is contained in:
Kousik Mitra
2023-06-16 14:48:53 +05:30
committed by GitHub
parent 0316350d16
commit 62ee1fa05a
2 changed files with 67 additions and 1 deletions

View File

@ -196,7 +196,7 @@ func (s *Service) CheckHealth(ctx context.Context, req *backend.CheckHealthReque
return nil, err
}
return nil, fmt.Errorf("%v: %w", "failed to check plugin health", backendplugin.ErrHealthCheckFailed)
return nil, fmt.Errorf("%w: %w", backendplugin.ErrHealthCheckFailed, err)
}
return resp, nil