Skip to content

Commit

Permalink
Added Fatal on Token / Auth Manager in Agent Admin
Browse files Browse the repository at this point in the history
  • Loading branch information
racerxdl committed Feb 11, 2019
1 parent a38d980 commit e1ef9c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/agentAdminEndpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func MakeAgentAdmin(tm etc.TokenManager, am etc.AuthManager) *AgentAdmin {
GraphiQL: false,
})

if tm == nil || am == nil {
amLog.Fatal("Token Manager / Auth Manager came nil")
}

return &AgentAdmin{
handler: h,
tm: tm,
Expand Down

0 comments on commit e1ef9c7

Please sign in to comment.