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 {
353353
354354 accountInfo , err := r .NBClient .CreateAccountAPI (createAccountParams )
355355 if err != nil {
356- return err
356+ return util .NewPersistentError ("InvalidCreateAccountParams" ,
357+ fmt .Sprintf ("%v" , err .Error ()))
357358 }
358359
359360 annotationValue , exists := util .GetAnnotationValue (r .NooBaaAccount .Annotations , "remote-operator" )
@@ -428,7 +429,8 @@ func (r *Reconciler) UpdateNooBaaAccount() error {
428429
429430 err := r .NBClient .UpdateAccountS3Access (updateAccountS3AccessParams )
430431 if err != nil {
431- return err
432+ return util .NewPersistentError ("InvalidUpdateAccountS3AccessParams" ,
433+ fmt .Sprintf ("%v" , err .Error ()))
432434 }
433435 log .Infof ("✅ Successfully updated account %q" , r .NooBaaAccount .Name )
434436 }
You can’t perform that action at this time.
0 commit comments