fix(updater): error when server has not the minimal information
This commit is contained in:
@@ -29,9 +29,9 @@ func (u *Updater) updateProvider(ctx context.Context, provider Provider,
|
|||||||
for _, server := range servers {
|
for _, server := range servers {
|
||||||
err := server.HasMinimumInformation()
|
err := server.HasMinimumInformation()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
serverJSON, err := json.Marshal(server)
|
serverJSON, jsonErr := json.Marshal(server)
|
||||||
if err != nil {
|
if jsonErr != nil {
|
||||||
panic(err)
|
panic(jsonErr)
|
||||||
}
|
}
|
||||||
return fmt.Errorf("server %s has not enough information: %w", serverJSON, err)
|
return fmt.Errorf("server %s has not enough information: %w", serverJSON, err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user