Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Jul 15, 2024
1 parent 8712b70 commit 96536f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zsshlib/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ func EstablishClient(f SshFlags, userName, targetIdentity, token string) *ssh.Cl
logrus.Fatalf("error creating ziti context: %v", err)
}

if err = ctx.Authenticate(); err != nil {
logrus.Errorf("error creating ziti context: %v", err)
logrus.Fatalf("could not authenticate. verify your identity is correct and matches all necessary authentication conditions.")
}

_, ok := ctx.GetService(f.ServiceName)
if !ok {
logrus.Fatalf("service not found: %s", f.ServiceName)
Expand Down

0 comments on commit 96536f0

Please sign in to comment.