Skip to content

Commit

Permalink
pkg/test: print test error and internal error separately
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
orangecms committed Sep 28, 2024
1 parent 299b93e commit 7c3d133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (t *Test) Run(hw hwapi.LowLevelHardwareInterfaces, preset *PreSet) bool {
}
t.Result = ResultFail
} else if testerror != nil && internalerror != nil {
t.ErrorText = testerror.Error() + ": " + internalerror.Error()
t.ErrorText = fmt.Sprintf("\n %v:\n %+v\n", testerror.Error(), internalerror)
if t.SpecificiationTitle != "" || t.SpecificationDocumentID != "" {
t.ErrorTextSpec = "Please have a look at "
if t.SpecificiationTitle != "" {
Expand Down

0 comments on commit 7c3d133

Please sign in to comment.