Skip to content

Commit

Permalink
Update error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Oct 8, 2024
1 parent aae5bba commit 4344e7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/types/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ func (o *OIDCConnectorV3) CheckAndSetDefaults() error {
return trace.BadParameter("max_age cannot be negative")
}
if maxAge.Round(time.Second) != maxAge {
return trace.BadParameter("max_age must be a multiple of seconds")
return trace.BadParameter("max_age %q is invalid, cannot have sub-second units", maxAge.String())
}
}

Expand All @@ -467,7 +467,7 @@ func (o *OIDCConnectorV3) CheckAndSetDefaults() error {
return trace.BadParameter("max_age cannot be negative")
}
if maxAge.Round(time.Second) != maxAge {
return trace.BadParameter("max_age must be a multiple of seconds")
return trace.BadParameter("max_age %q invalid, cannot have sub-second units", maxAge.String())
}
}

Expand Down

0 comments on commit 4344e7b

Please sign in to comment.