Skip to content

Commit 776da31

Browse files
committed
fix err return
1 parent 3e9d572 commit 776da31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/config/src/sections/upstream_oauth2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ impl ConfigurationSection for UpstreamOAuth2Config {
125125
provider.claims_imports.localpart.action,
126126
ImportAction::Force | ImportAction::Require
127127
) {
128-
return annotate(figment::Error::custom(
128+
return Err(annotate(figment::Error::custom(
129129
"The field `action` must be either `force` or `require` when `on_conflict` is set to `add`",
130-
));
130+
)).into());
131131
}
132132
}
133133

0 commit comments

Comments
 (0)