File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,8 @@ func (r *Reconciler) CreateNooBaaAccount() error {
353
353
354
354
accountInfo , err := r .NBClient .CreateAccountAPI (createAccountParams )
355
355
if err != nil {
356
- return err
356
+ return util .NewPersistentError ("InvalidCreateAccountParams" ,
357
+ fmt .Sprintf ("%v" , err .Error ()))
357
358
}
358
359
359
360
annotationValue , exists := util .GetAnnotationValue (r .NooBaaAccount .Annotations , "remote-operator" )
@@ -428,7 +429,8 @@ func (r *Reconciler) UpdateNooBaaAccount() error {
428
429
429
430
err := r .NBClient .UpdateAccountS3Access (updateAccountS3AccessParams )
430
431
if err != nil {
431
- return err
432
+ return util .NewPersistentError ("InvalidUpdateAccountS3AccessParams" ,
433
+ fmt .Sprintf ("%v" , err .Error ()))
432
434
}
433
435
log .Infof ("✅ Successfully updated account %q" , r .NooBaaAccount .Name )
434
436
}
You can’t perform that action at this time.
0 commit comments