From 015167f4a3d1926e545b6dc72e14764ea0a5fa86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Tue, 26 Sep 2023 08:50:57 +0200 Subject: [PATCH] caller test --- pkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg.go b/pkg.go index 2e248c3..950c3c5 100644 --- a/pkg.go +++ b/pkg.go @@ -22,7 +22,7 @@ var ( ) func init() { - _, file, _, _ := runtime.Caller(1) + _, file, _, _ := runtime.Caller(2) fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file) dir := path.Dir(file) dirBase := path.Dir(dir)