From 806f31b69d9517c6d0571898af15105db2d136c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Tue, 26 Sep 2023 09:03:46 +0200 Subject: [PATCH] Stack test --- pkg.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg.go b/pkg.go index 964e347..667553f 100644 --- a/pkg.go +++ b/pkg.go @@ -6,6 +6,7 @@ import ( "fmt" "path" "runtime" + "runtime/debug" ) type Error struct { @@ -21,6 +22,10 @@ var ( baseDirLength int ) +func init() { + debug.PrintStack() +} + func Init() { _, file, _, _ := runtime.Caller(1) fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)