Skip to content

Commit

Permalink
Catch error case
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Schneider authored and malud committed Mar 29, 2021
1 parent 56d974e commit 45acc02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/configload/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,10 @@ func newOAuthBackend(definedBackends Backends, parent hcl.Body) (hcl.Body, error
}

oauthBackend, err := mergeBackendBodies(definedBackends, &config.Backend{Remain: hclbody.New(backendContent)})
if err != nil {
return nil, err
}

b, err := newBackend(definedBackends, &config.OAuth2{Remain: hclbody.New(&hcl.BodyContent{
Blocks: []*hcl.Block{
{Type: backend, Body: oauthBackend},
Expand Down

0 comments on commit 45acc02

Please sign in to comment.