propagate plugin unavailable message to UI (#31560)

This commit is contained in:
Will Browne 2021-03-01 18:54:10 +01:00 committed by GitHub
parent 5773b8f28c
commit a606a49cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,6 +228,10 @@ func (m *manager) CheckHealth(ctx context.Context, pluginContext backend.PluginC
return nil, err
}
if errors.Is(err, ErrPluginUnavailable) {
return nil, err
}
return nil, errutil.Wrap("failed to check plugin health", ErrHealthCheckFailed)
}