From f1d630b3aae2dfb68a0ab76f121d3c2ed87d9121 Mon Sep 17 00:00:00 2001 From: natalia Date: Thu, 20 Jun 2024 10:54:23 +0200 Subject: [PATCH] refactor: use getter method for nodes and messages --- pkg/kratos/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kratos/service.go b/pkg/kratos/service.go index 52906a734..ad06ac31b 100644 --- a/pkg/kratos/service.go +++ b/pkg/kratos/service.go @@ -321,12 +321,12 @@ func (s *Service) getUiError(responseBody io.ReadCloser) (err error) { // if no message was found, search through nodes if len(errorCodes) == 0 { - nodes := errorMessages.Ui.Nodes + nodes := errorMessages.Ui.GetNodes() for _, node := range nodes { // look for the node where error appears for _, message := range node.Messages { if message.Type == "error" { - errorCodes = node.Messages + errorCodes = node.GetMessages() s.logger.Debugf("Messages: %s", errorCodes) } }