From d394a14c89ce718b2118e93e18ca87a1d89019d0 Mon Sep 17 00:00:00 2001 From: Sourabh Mehta Date: Mon, 2 Sep 2024 09:46:43 +0200 Subject: [PATCH] Linting issues use method Error --- internal/stm32CubeMX/stm32CubeMX.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/stm32CubeMX/stm32CubeMX.go b/internal/stm32CubeMX/stm32CubeMX.go index dd19b2f..dbc29f7 100644 --- a/internal/stm32CubeMX/stm32CubeMX.go +++ b/internal/stm32CubeMX/stm32CubeMX.go @@ -751,7 +751,7 @@ func GetStartupFile(outPath string, bridgeParams BridgeParamType) (string, error if !utils.DirExists(startupFolder) { errorString := "Directory not found: " + startupFolder - log.Errorf(errorString) + log.Error(errorString) return "", errors.New(errorString) } @@ -773,7 +773,7 @@ func GetStartupFile(outPath string, bridgeParams BridgeParamType) (string, error if startupFile == "" { errorString := "startup file not found" - log.Errorf(errorString) + log.Error(errorString) return "", errors.New(errorString) } @@ -821,7 +821,7 @@ func GetSystemFile(outPath string, bridgeParams BridgeParamType) (string, error) if !utils.DirExists(systemFolder) { errorString := "Directory not found: " + systemFolder - log.Errorf(errorString) + log.Error(errorString) return "", errors.New(errorString) } @@ -837,7 +837,7 @@ func GetSystemFile(outPath string, bridgeParams BridgeParamType) (string, error) if systemFile == "" { errorString := "system file not found" - log.Errorf(errorString) + log.Error(errorString) return "", errors.New(errorString) } @@ -903,7 +903,7 @@ func GetLinkerScripts(outPath string, bridgeParams BridgeParamType) ([]string, e if !utils.DirExists(linkerFolder) { errorString := "Directory not found: " + linkerFolder - log.Errorf(errorString) + log.Error(errorString) return nil, errors.New(errorString) }