Skip to content

Commit

Permalink
fmsg: only append non-empty external messages
Browse files Browse the repository at this point in the history
  • Loading branch information
toqueteos authored and Southclaws committed Nov 25, 2022
1 parent 2c1610a commit 5f76344
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fmsg/fmsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ func GetIssues(err error) []Issue {

for err != nil {
if wm, ok := err.(*withMessage); ok {
p = append(p, wm.external)
if wm.external != "" {
p = append(p, wm.external)
}
}

err = errors.Unwrap(err)
Expand Down

0 comments on commit 5f76344

Please sign in to comment.