diff --git a/internal/wrappers/configuration/configuration.go b/internal/wrappers/configuration/configuration.go index c6e9869fa..994422df9 100644 --- a/internal/wrappers/configuration/configuration.go +++ b/internal/wrappers/configuration/configuration.go @@ -134,14 +134,14 @@ func WriteSingleConfigKey(key string, value int) { // Get the configuration file path fullPath, err := getConfigFilePath() if err != nil { - logger.PrintfIfVerbose("failed to get config file path: %w", err) + logger.PrintfIfVerbose("failed to get config file path: %w", err.Error()) return } // Load existing configuration or initialize a new one config, err := loadConfig(fullPath) if err != nil { - logger.PrintfIfVerbose("failed to load config: %w", err) + logger.PrintfIfVerbose("failed to load config: %w", err.Error()) return } @@ -149,8 +149,8 @@ func WriteSingleConfigKey(key string, value int) { config[key] = value // Save the updated configuration back to the file - if err := saveConfig(fullPath, config); err != nil { - logger.PrintfIfVerbose("failed to save config: %w", err) + if err = saveConfig(fullPath, config); err != nil { + logger.PrintfIfVerbose("failed to save config: %w", err.Error()) return } }