Fix an unsupported type error when a generic error is raised
@@ -54,7 +54,7 @@ func (r *OperationReconciler) handleFinalizers(ctx context.Context, instance *op
if instance.HasLogsFinalizer() {
if err := r.collectLogs(instance); err != nil {
- log.Info("Error logs collection", "Error", err.Error)
+ log.Info("Error logs collection", "Error", err.Error())
// TODO: add better error handling
return nil
}
@@ -65,7 +65,7 @@ func (r *OperationReconciler) handleFinalizers(ctx context.Context, instance *op
if instance.HasNotificationsFinalizer() {
if err := r.notify(instance); err != nil {
- log.Info("Error notification", "Error", err.Error)
+ log.Info("Error notification", "Error", err.Error())
// TODO: add better error handling
return nil
}
