Skip to content

Commit 42c80cd

Browse files
committed
fix(error): add documentation URLs to config validation error messages
Include ERROR_DOC_CONFIG_URL in InvalidClientKey and InvalidDefaultKeysetId error variants to help users resolve configuration issues.
1 parent 5861db0 commit 42c80cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cipherstash-proxy/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ pub enum ConfigError {
122122
#[error(transparent)]
123123
FileOrEnvironment(#[from] config::ConfigError),
124124

125-
#[error("Client key is not valid.")]
125+
#[error("Client key is not valid. For help visit {}", ERROR_DOC_CONFIG_URL)]
126126
InvalidClientKey,
127127

128-
#[error("default_keyset_id is not a valid UUID.")]
128+
#[error("default_keyset_id is not a valid UUID. For help visit {}", ERROR_DOC_CONFIG_URL)]
129129
InvalidDefaultKeysetId,
130130

131131
#[error("Server host {name} is not a valid server name")]

0 commit comments

Comments
 (0)