diff --git a/error.go b/error.go index 5eb53265a..b9ae9e4c6 100644 --- a/error.go +++ b/error.go @@ -309,7 +309,7 @@ func initStacktrace(e *Error, err error) { for i, frame := range stackTrace { pc[i] = uintptr(frame) } - e.stacktrace = stacktrace.AppendCallerFrames(e.stacktrace[:0], pc) + e.stacktrace = stacktrace.AppendCallerFrames(e.stacktrace[:0], pc, -1) } } diff --git a/stacktrace/generate_library.bash b/stacktrace/generate_library.bash index 1c8de0a61..559fe01b3 100644 --- a/stacktrace/generate_library.bash +++ b/stacktrace/generate_library.bash @@ -2,7 +2,7 @@ set -e -_PKGS=$(go list -f '{{printf "\t%q: true,\n" .ImportPath}}' "$@") +_PKGS=$(go list -f '{{printf "\t%q,\n" .ImportPath}}' "$@") cat > library.go <