chore(): increase test coverage and update dependencies
Some checks are pending
ci/woodpecker/pr/pr Pipeline is pending

This commit is contained in:
2025-12-18 23:12:27 +01:00
parent e779c5a38b
commit 2d1aa62c61
15 changed files with 384 additions and 74 deletions

View File

@@ -1,7 +1,6 @@
package config
import (
"errors"
"fmt"
"time"
@@ -36,7 +35,7 @@ func GenConfig() (cfg *Config, err error) {
Silent: true,
AutoReloadInterval: time.Minute}).Load(cfg, "config.json")
if err != nil {
return nil, errors.New(fmt.Sprintf("Error generating Config: %s", err.Error()))
return nil, fmt.Errorf("Error generating Config: %s", err.Error())
}
return cfg, nil
}