return err

This commit is contained in:
TangBin
2018-11-15 19:26:35 +08:00
parent 010f5c1f97
commit 9bf73e99d9
+1 -1
View File
@@ -114,7 +114,7 @@ func (manager *SCloudaccountManager) ValidateCreateData(ctx context.Context, use
return nil, httperrors.NewResourceNotFoundError("no such provider %s", provider)
}
log.Debugf("ValidateCreateData %s", err.Error())
return nil, httperrors.NewInvalidCredentialError("invalid cloud account info")
return nil, httperrors.NewInputParameterError("invalid cloud account info")
}
return manager.SEnabledStatusStandaloneResourceBaseManager.ValidateCreateData(ctx, userCred, ownerProjId, query, data)