Skip to content

Commit 9298fbb

Browse files
committed
fix(config): do not echo the api_key reference in the empty-value error
1 parent a8bb16b commit 9298fbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎internal/config/api_key_env.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func resolveAPIKeyRef(c *Config) error {
105105
return fmt.Errorf("api_key: %w", err)
106106
}
107107
if resolved == "" {
108-
return fmt.Errorf("api_key: %s resolved to an empty value", c.APIKey)
108+
return fmt.Errorf("api_key: the reference resolved to an empty value")
109109
}
110110
OverrideForProcess(c, FieldAPIKey, OverrideSourceEnv, resolved)
111111
return nil

0 commit comments

Comments
 (0)