fix(parser/resultdetail): format on empty error
This commit is contained in:
parent
7654c7e6f3
commit
1e83ba4b87
|
@ -33,6 +33,9 @@ func (*ResultDetail) Run(results []stage.ExecutorResult, confAny any) (
|
||||||
comment += fmt.Sprintf("Exit Status: `%d`\n", result.ExitStatus)
|
comment += fmt.Sprintf("Exit Status: `%d`\n", result.ExitStatus)
|
||||||
}
|
}
|
||||||
if conf.ShowError {
|
if conf.ShowError {
|
||||||
|
if result.Error == "" {
|
||||||
|
result.Error = "nil"
|
||||||
|
}
|
||||||
comment += fmt.Sprintf("Error: `%s`\n", result.Error)
|
comment += fmt.Sprintf("Error: `%s`\n", result.Error)
|
||||||
}
|
}
|
||||||
if conf.ShowTime {
|
if conf.ShowTime {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user