Skip to content

Commit

Permalink
improve errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ingon committed Jan 20, 2025
1 parent 2c2adfb commit e727e7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/connet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ func parseClientAuth(tokens []string, restrs []TokenRestriction) (control.Client
case len(restrs) == 0:
restrs = make([]TokenRestriction, len(tokens))
case len(tokens) != len(restrs):
return nil, kleverr.Newf("expected equal number of tokens (%d) and token restrictions (%d)", len(tokens), len(restrs))
return nil, kleverr.Newf("expected equal number of client tokens (%d) and token restrictions (%d)", len(tokens), len(restrs))
}

auths := make([]selfhosted.ClientAuthentication, len(tokens))
Expand Down Expand Up @@ -786,7 +786,7 @@ func parseRelayAuth(tokens []string, restrs []IPRestriction) (control.RelayAuthe
case len(restrs) == 0:
restrs = make([]IPRestriction, len(tokens))
case len(tokens) != len(restrs):
return nil, kleverr.Newf("expected equal number of tokens (%d) and ip restrictions (%d)", len(tokens), len(restrs))
return nil, kleverr.Newf("expected equal number of relay tokens (%d) and ip restrictions (%d)", len(tokens), len(restrs))
}

auths := make([]selfhosted.RelayAuthentication, len(tokens))
Expand Down

0 comments on commit e727e7d

Please sign in to comment.