Skip to content

Commit

Permalink
Fix Analyzer manager exit error log (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 authored Sep 13, 2023
1 parent c79931b commit adc2d4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xray/utils/analyzermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ func (am *AnalyzerManager) Exec(configFile, scanCommand, workingDir string, serv
cmd.Dir = workingDir
output, err := cmd.CombinedOutput()
if err != nil {
err = errorutils.CheckErrorf("running %q in directory: %q failed: %s - %s", strings.Join(cmd.Args, " "), workingDir, err.Error(), string(output))
if len(output) > 0 {
log.Debug(fmt.Sprintf("%s %q output: %s", workingDir, strings.Join(cmd.Args, " "), string(output)))
}
err = errorutils.CheckError(err)
}
return
}
Expand Down

0 comments on commit adc2d4c

Please sign in to comment.