From c20f9e7aa22aaab8a7d9d50ab164c90b5a56b1b1 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Wed, 7 May 2025 07:24:57 -0500 Subject: [PATCH] go up the call stack for file name --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors.go b/errors.go index 51249db..6692e39 100644 --- a/errors.go +++ b/errors.go @@ -24,7 +24,7 @@ assert.%s func fileInfo() (string, int) { // Skip frames: runtime.Callers, this function, assertion function, and test helper // This gets us to the actual test file that called the assertion - const skip = 3 + const skip = 4 _, file, line, ok := runtime.Caller(skip) if !ok { return "unknown_file", 0