From 2f61b07aea82fa0f5b98686bdfeba2e297c7b21b Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Mon, 7 Sep 2026 03:13:01 +0200 Subject: refactor(cardmarket): move handlers to own directory --- src/config/config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/config') 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{ -- cgit v1.2.3