Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pkg/translator/faro/keyval.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,14 @@ func exceptionMessage(e *faroTypes.Exception) string {

// exceptionToString is the string representation of an Exception
func exceptionToString(e *faroTypes.Exception) string {
stacktrace := exceptionMessage(e)
var stacktrace strings.Builder
stacktrace.WriteString(exceptionMessage(e))
if e.Stacktrace != nil {
for i := range e.Stacktrace.Frames {
stacktrace += frameToString(&e.Stacktrace.Frames[i])
stacktrace.WriteString(frameToString(&e.Stacktrace.Frames[i]))
}
}
return stacktrace
return stacktrace.String()
}

// frameToString function converts a Frame into a human readable string
Expand Down