@@ -74,7 +74,7 @@ func (r *RabbitmqClusterReconciler) runEnableFeatureFlagsCommand(ctx context.Con
7474 msg := "failed to enable all feature flags on pod"
7575 logger .Error (err , msg , "pod" , podName , "command" , cmd , "stdout" , stdout , "stderr" , stderr )
7676 r .Recorder .Event (rmq , corev1 .EventTypeWarning , "FailedReconcile" , fmt .Sprintf ("%s %s" , msg , podName ))
77- return fmt .Errorf ("%s %s: %v " , msg , podName , err )
77+ return fmt .Errorf ("%s %s: %w " , msg , podName , err )
7878 }
7979 logger .Info ("successfully enabled all feature flags" )
8080 return r .deleteAnnotation (ctx , sts , stsCreateAnnotation )
@@ -95,7 +95,7 @@ func (r *RabbitmqClusterReconciler) runSetPluginsCommand(ctx context.Context, rm
9595 msg := "failed to set plugins on pod"
9696 logger .Error (err , msg , "pod" , podName , "command" , cmd , "stdout" , stdout , "stderr" , stderr )
9797 r .Recorder .Event (rmq , corev1 .EventTypeWarning , "FailedReconcile" , fmt .Sprintf ("%s %s" , msg , podName ))
98- return fmt .Errorf ("%s %s: %v " , msg , podName , err )
98+ return fmt .Errorf ("%s %s: %w " , msg , podName , err )
9999 }
100100 }
101101 logger .Info ("successfully set plugins" )
@@ -111,7 +111,7 @@ func (r *RabbitmqClusterReconciler) runQueueRebalanceCommand(ctx context.Context
111111 msg := "failed to run queue rebalance on pod"
112112 logger .Error (err , msg , "pod" , podName , "command" , cmd , "stdout" , stdout , "stderr" , stderr )
113113 r .Recorder .Event (rmq , corev1 .EventTypeWarning , "FailedReconcile" , fmt .Sprintf ("%s %s" , msg , podName ))
114- return fmt .Errorf ("%s %s: %v " , msg , podName , err )
114+ return fmt .Errorf ("%s %s: %w " , msg , podName , err )
115115 }
116116 return r .deleteAnnotation (ctx , rmq , queueRebalanceAnnotation )
117117}
0 commit comments