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