Skip to content

Commit

Permalink
Improve error messaging when instance is newer than auth (#34083)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy authored Oct 31, 2023
1 parent a37c8fa commit 46afb1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/service/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ func (process *TeleportProcess) authServerTooOld(resp *proto.PingResponse) error

if serverVersion.Major < teleportVersion.Major {
if process.Config.SkipVersionCheck {
process.log.Warnf("Only versions %d and greater are supported, but auth server is version %d.", teleportVersion.Major, serverVersion.Major)
process.log.Warnf("Teleport instance is too new. This instance is running v%d. The auth server is running v%d and only supports instances on v%d or v%d.", teleportVersion.Major, serverVersion.Major, serverVersion.Major, serverVersion.Major-1)
return nil
}
return trace.NotImplemented("only versions %d and greater are supported, but auth server is version %d. To connect anyway pass the '--skip-version-check' flag.", teleportVersion.Major, serverVersion.Major)
return trace.NotImplemented("Teleport instance is too new. This instance is running v%d. The auth server is running v%d and only supports instances on v%d or v%d. To connect anyway pass the --skip-version-check flag.", teleportVersion.Major, serverVersion.Major, serverVersion.Major, serverVersion.Major-1)
}

return nil
Expand Down

0 comments on commit 46afb1e

Please sign in to comment.