diff --git a/integration/tsic/tsic.go b/integration/tsic/tsic.go index b7482455..14c627d4 100644 --- a/integration/tsic/tsic.go +++ b/integration/tsic/tsic.go @@ -121,6 +121,10 @@ func (t *TailscaleInContainer) Execute( if err != nil { log.Printf("command stderr: %s\n", stderr) + if stdout != "" { + log.Printf("command stdout: %s\n", stdout) + } + if strings.Contains(stderr, "NeedsLogin") { return "", errTailscaleNotLoggedIn } @@ -128,10 +132,6 @@ func (t *TailscaleInContainer) Execute( return "", err } - if stdout != "" { - log.Printf("command stdout: %s\n", stdout) - } - return stdout, nil }