fix(gateway): avoid err shadowing in plugin bootstrap
This commit is contained in:
parent
583d5ef9df
commit
372e32de16
1 changed files with 2 additions and 2 deletions
|
|
@ -67,8 +67,8 @@ func gatewayCmd(debug bool) error {
|
||||||
return fmt.Errorf("error resolving configured plugins: %w", err)
|
return fmt.Errorf("error resolving configured plugins: %w", err)
|
||||||
}
|
}
|
||||||
if len(pluginsToEnable) > 0 {
|
if len(pluginsToEnable) > 0 {
|
||||||
if err := agentLoop.EnablePlugins(pluginsToEnable...); err != nil {
|
if enableErr := agentLoop.EnablePlugins(pluginsToEnable...); enableErr != nil {
|
||||||
return fmt.Errorf("error enabling plugins: %w", err)
|
return fmt.Errorf("error enabling plugins: %w", enableErr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger.InfoCF("agent", "Plugin selection resolved",
|
logger.InfoCF("agent", "Plugin selection resolved",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue