From 1c0579d06519314ba68d43d1210dec1324bf54a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Tue, 26 Sep 2023 08:54:26 +0200 Subject: [PATCH] Added Init() --- pkg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg.go b/pkg.go index 950c3c5..964e347 100644 --- a/pkg.go +++ b/pkg.go @@ -21,8 +21,8 @@ var ( baseDirLength int ) -func init() { - _, file, _, _ := runtime.Caller(2) +func Init() { + _, file, _, _ := runtime.Caller(1) fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file) dir := path.Dir(file) dirBase := path.Dir(dir)