We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d4f868 commit 1d77504Copy full SHA for 1d77504
CHANGELOG.md
@@ -1,3 +1,5 @@
1
+* Fixed depth for `pkg/xerrors.WithStackTrace()` error
2
+
3
## v3.114.0
4
* Added public packages:
5
- `pkg/xerrors` - helpers for wrap errors with stacktrace and join errors
pkg/xerrors/stacktrace.go
@@ -3,7 +3,7 @@ package xerrors
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/xerrors"
func WithStackTrace(err error, opts ...xerrors.WithStackTraceOption) error {
6
- return xerrors.WithStackTrace(err, opts...)
+ return xerrors.WithStackTrace(err, append(opts, WithSkipDepth(1))...)
7
}
8
9
func WithSkipDepth(skipDepth int) xerrors.WithStackTraceOption {
0 commit comments