Returns true if the error returned by [exec.Run] fails with a non-zero exit code, false otherwise.
(err error)
| 535 | // Returns true if the error returned by [exec.Run] fails with a non-zero |
| 536 | // exit code, false otherwise. |
| 537 | func isNonZeroExitCode(err error) bool { |
| 538 | if err == nil { |
| 539 | return false |
| 540 | } |
| 541 | |
| 542 | exitError, ok := err.(*exec.ExitError) |
| 543 | if !ok { |
| 544 | return false |
| 545 | } |
| 546 | |
| 547 | return exitError.ExitCode() != 0 |
| 548 | } |
| 549 | |
| 550 | // If we interrupt `tailscale up` and then run it again, we should only |
| 551 | // print a single auth URL. |
no outgoing calls
no test coverage detected
searching dependent graphs…