Skip to content

Commit

Permalink
fix: return correct errors (#1572)
Browse files Browse the repository at this point in the history
Signed-off-by: dovholuknf <46322585+dovholuknf@users.noreply.github.com>
  • Loading branch information
dovholuknf authored Mar 23, 2024
1 parent 4e2b535 commit addcf2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/webserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ func (webserver *WebServer) listenAndServe(serviceTimeout time.Duration, errChan
ozToken, jwtErr := secretProvider.GetSelfJWT()
if jwtErr != nil {
lc.Errorf("zero trust mode enabled, but could not load jwt: %v", jwtErr)
errChannel <- err
errChannel <- jwtErr
return
}

ctx, authErr := zerotrust.AuthToOpenZiti(ozUrl, ozToken)
if authErr != nil {
lc.Errorf("could not authenticate to OpenZiti: %v", authErr)
errChannel <- err
errChannel <- authErr
return
}

Expand Down

0 comments on commit addcf2b

Please sign in to comment.