Fix error checking and error message

pull/15834/head
Om Saran 2023-02-21 19:02:00 -06:00 committed by Steven Powell
parent 0db6f80b09
commit 4df0bb2ace
1 changed files with 2 additions and 2 deletions

View File

@ -154,9 +154,9 @@ func validateNoSecondTunnel(ctx context.Context, t *testing.T, profile string) {
err = session.cmd.Wait()
if exErr, ok := err.(*exec.ExitError); ok {
exitCodeCh <- exErr.ExitCode()
} else {
} else if err != nil {
exitCodeCh <- -1
t.Errorf("Second tunnel command failed due to a different reason: %s", err)
t.Errorf("tunnel command failed due to a different reason: %s", err)
}
}