From 7fdb31c8ef2c7fa89deb9e31701d08d190e70bda Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Fri, 6 Mar 2026 06:43:33 +0100 Subject: [PATCH] chore: add more diagnostic output to dbfs Stat error (#11525) Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11525 Reviewed-by: Michael Kriese Co-authored-by: Mathieu Fenniak Co-committed-by: Mathieu Fenniak --- modules/actions/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/actions/log.go b/modules/actions/log.go index 5df1f9bec3..c7cb270b18 100644 --- a/modules/actions/log.go +++ b/modules/actions/log.go @@ -61,7 +61,7 @@ func WriteLogs(ctx context.Context, filename string, offset int64, rows []*runne stat, err := f.Stat() if err != nil { - return nil, fmt.Errorf("dbfs Stat %q: %w", name, err) + return nil, fmt.Errorf("WriteLogs(name=%q, offset=%d, len(rows)=%d): dbfs Stat: %w", name, offset, len(rows), err) } if stat.Size() < offset { // If the size is less than offset, refuse to write, or it could result in content holes.