Skip to content

Commit 047252d

Browse files
committed
remove package name
1 parent e2baf62 commit 047252d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

go.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// ConcurrentCodeCrashCatcherDelegate -
11-
type ConcurrentCodeCrashCatcherDelegate func(err interface{}, packageName string, callStack []callstack.Frame)
11+
type ConcurrentCodeCrashCatcherDelegate func(err interface{}, callStack []callstack.Frame)
1212

1313
// ConcurrentCodeCrashCatcher -
1414
var ConcurrentCodeCrashCatcher ConcurrentCodeCrashCatcherDelegate
@@ -26,9 +26,9 @@ func GoWithArgs(concurrentCode func(args ...interface{}), args ...interface{}) {
2626
defer func() {
2727
debug.SetPanicOnFault(true)
2828
if err := recover(); err != nil {
29-
packageName, callStack := callstack.Get()
29+
callStack := callstack.GetFrames()
3030
if ConcurrentCodeCrashCatcher != nil {
31-
ConcurrentCodeCrashCatcher(err, packageName, callStack)
31+
ConcurrentCodeCrashCatcher(err, callStack)
3232
}
3333
}
3434
}()

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/codemodify/systemkit-crashproof
22

33
go 1.13
44

5-
require github.com/codemodify/systemkit-callstack v1.0.1
5+
require github.com/codemodify/systemkit-callstack v1.0.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/codemodify/systemkit-callstack v1.0.1 h1:R/uX47JS+QMru1dzO83CSxpHfztcD9hbZInkUqN3Chs=
2-
github.com/codemodify/systemkit-callstack v1.0.1/go.mod h1:tL2pYKPdNPOIwmZH9ZfR035fRfT5vObZn0Qd7gYryY4=
1+
github.com/codemodify/systemkit-callstack v1.0.2 h1:IEqhyJVlU4l3TpRAs6gETM2cUCY0GZteWKc78qxjFNo=
2+
github.com/codemodify/systemkit-callstack v1.0.2/go.mod h1:tL2pYKPdNPOIwmZH9ZfR035fRfT5vObZn0Qd7gYryY4=

0 commit comments

Comments
 (0)