1
0

endless: exit on first error

This commit is contained in:
dump_stack() 2023-05-08 21:36:25 +00:00
parent 15d8ab8137
commit ca95155ce0
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

3
pew.go
View File

@ -743,7 +743,8 @@ func (cmd PewCmd) testArtifact(swg *sizedwaitgroup.SizedWaitGroup,
for {
output, err := q.Command("root", remoteTest)
if err != nil {
slog.Error().Err(err).Msg(output)
q.Stop()
slog.Fatal().Err(err).Msg(output)
return
}
slog.Debug().Msg(output)