summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2026-09-07 03:13:01 +0200
committerDJ O'Leary <dijitol@proton.me>2026-09-07 03:13:01 +0200
commit2f61b07aea82fa0f5b98686bdfeba2e297c7b21b (patch)
treeb55f588e935b11decd782e7bd0a6c98f060e1654 /src/config
parent5d3efcc64fc9664e061b44659f85aeec03a56685 (diff)
refactor(cardmarket): move handlers to own directoryHEADmain
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/config/config.go b/src/config/config.go
index 664bef3..fc5d71a 100644
--- a/src/config/config.go
+++ b/src/config/config.go
@@ -18,11 +18,11 @@ const (
)
var (
- ErrMissingCardmarketAppToken = errors.New("err: missing " + CardmarketAppToken + " in ENV")
- ErrMissingCardmarketAppSecret = errors.New("err: missing " + CardmarketAppSecret + " in ENV")
- ErrMissingCardmarketAccessToken = errors.New("err: missing " + CardmarketAccessToken + " in ENV")
- ErrMissingCardmarketAccessTokenSecret = errors.New("err: missing " + CardmarketAccessTokenSecret + " in ENV")
- ErrMissingCardmarketApiBaseURL = errors.New("err: missing " + CardmarketApiBaseURL + " in ENV")
+ ErrMissingCardmarketAppToken = errors.New("error: missing " + CardmarketAppToken + " in ENV")
+ ErrMissingCardmarketAppSecret = errors.New("error: missing " + CardmarketAppSecret + " in ENV")
+ ErrMissingCardmarketAccessToken = errors.New("error: missing " + CardmarketAccessToken + " in ENV")
+ ErrMissingCardmarketAccessTokenSecret = errors.New("error: missing " + CardmarketAccessTokenSecret + " in ENV")
+ ErrMissingCardmarketApiBaseURL = errors.New("error: missing " + CardmarketApiBaseURL + " in ENV")
)
type CardmarketApiAuth struct {
@@ -77,7 +77,7 @@ func NewConfigFromEnv() (Config, error) {
lvl := slog.LevelInfo
appLogLevel := os.Getenv(AppLogLevel)
if lvlErr := lvl.UnmarshalText([]byte(appLogLevel)); len(appLogLevel) > 0 && lvlErr != nil {
- return Config{}, errors.Join(errors.New("could not unmarshal "+AppLogLevel), lvlErr)
+ return Config{}, errors.Join(errors.New("error: could not unmarshal "+AppLogLevel), lvlErr)
}
return Config{