We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e9d572 commit 776da31Copy full SHA for 776da31
crates/config/src/sections/upstream_oauth2.rs
@@ -125,9 +125,9 @@ impl ConfigurationSection for UpstreamOAuth2Config {
125
provider.claims_imports.localpart.action,
126
ImportAction::Force | ImportAction::Require
127
) {
128
- return annotate(figment::Error::custom(
+ return Err(annotate(figment::Error::custom(
129
"The field `action` must be either `force` or `require` when `on_conflict` is set to `add`",
130
- ));
+ )).into());
131
}
132
133
0 commit comments