fix: wrap run release test error in case GetPodLogs failed.

Signed-off-by: manslaughter03 <manslaughter03@gmail.com>
pull/30973/head
manslaughter03 3 months ago
parent 0a8194c9a3
commit bc44614a78

@ -17,6 +17,7 @@ limitations under the License.
package cmd package cmd
import ( import (
"errors"
"fmt" "fmt"
"io" "io"
"regexp" "regexp"
@ -85,7 +86,7 @@ func newReleaseTestCmd(cfg *action.Configuration, out io.Writer) *cobra.Command
// Print a newline to stdout to separate the output // Print a newline to stdout to separate the output
fmt.Fprintln(out) fmt.Fprintln(out)
if err := client.GetPodLogs(out, rel); err != nil { if err := client.GetPodLogs(out, rel); err != nil {
return err return errors.Join(runErr, err)
} }
} }

Loading…
Cancel
Save