Skip to content

Commit

Permalink
main: logged correct error in branch
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <[email protected]>
  • Loading branch information
vincepri committed Jan 24, 2024
1 parent 245e21e commit 9a5c6a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@ func main() {
// Setup the context that's going to be used in controllers and for the manager.
ctx := ctrl.SetupSignalHandler()

if setupErr := setupReconcilers(ctx, mgr); setupErr != nil {
if err := setupReconcilers(ctx, mgr); err != nil {
setupLog.Error(err, "unable to setup reconcilers")
os.Exit(1)
}

if setupErr := setupWebhooks(mgr); setupErr != nil {
if err := setupWebhooks(mgr); err != nil {
setupLog.Error(err, "unable to setup webhooks")
os.Exit(1)
}

if setupErr := setupProbes(mgr); setupErr != nil {
if err := setupProbes(mgr); err != nil {
setupLog.Error(err, "unable to setup probes")
os.Exit(1)
}
Expand Down

0 comments on commit 9a5c6a1

Please sign in to comment.