Skip to content

Commit

Permalink
Fix panic when parsing juju stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
matteosuppo committed Sep 21, 2017
1 parent def7240 commit acd7940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func stacktrace(err error) StackTrace {
parts := strings.Split(line, ":")

var n int
if len(parts) < 1 {
if len(parts) < 2 {
n = -1
} else {
var err error
Expand Down

0 comments on commit acd7940

Please sign in to comment.