Skip to content

Commit

Permalink
fix lineNo
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Mar 6, 2024
1 parent 65fd9f4 commit bd1e156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jerror.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func parseJavaError0(line string, sc *lineScanner) (je *JavaError) {
} else {
je.Class, je.Message = line[:i], strings.TrimSpace(line[i+1:])
}
je.Stacktrace = parseStacktrace(sc)
je.LineNo = sc.Count()
je.Stacktrace = parseStacktrace(sc)
if line, ok := strings.CutPrefix(strings.TrimSpace(sc.Text()), "Caused by: "); ok {
je.CausedBy = parseJavaError0(line, sc)
}
Expand Down

0 comments on commit bd1e156

Please sign in to comment.