File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -164,12 +164,12 @@ func classifyParameters(updatedParameters parametersv1alpha1.ComponentParameters
164
164
rctx .ConfigRender ,
165
165
)
166
166
if err != nil {
167
- return err
167
+ return intctrlutil . NewFatalError ( err . Error ())
168
168
}
169
169
for tpl , m := range classParameters {
170
170
configDescs := intctrlutil .GetComponentConfigDescriptions (& rctx .ConfigRender .Spec , tpl )
171
171
if len (configDescs ) == 0 {
172
- return fmt .Errorf ("not found config description from pdcr: %s" , tpl )
172
+ return intctrlutil . NewFatalError ( fmt .Sprintf ("not found config description from pdcr: %s" , tpl ) )
173
173
}
174
174
if err := validateComponentParameter (toArray (rctx .ParametersDefs ), configDescs , m ); err != nil {
175
175
return intctrlutil .NewFatalError (err .Error ())
You can’t perform that action at this time.
0 commit comments