diff mbox series

[v2,2/3] refs: print error message in debug output

Message ID b189f8661e22a7e8d3f4a0dfd3ed32ae14b49e0b.1640196714.git.gitgitgadget@gmail.com (mailing list archive)
State Accepted
Commit a6db572af6bc792590716856d80e8b9c02a55bec
Headers show
Series tweaks to refs/debug.c | expand

Commit Message

Han-Wen Nienhuys Dec. 22, 2021, 6:11 p.m. UTC
From: Han-Wen Nienhuys <hanwen@google.com>

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
---
 refs/debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/refs/debug.c b/refs/debug.c
index 791423c6a7d..8a6bb157ee6 100644
--- a/refs/debug.c
+++ b/refs/debug.c
@@ -47,7 +47,8 @@  static int debug_transaction_prepare(struct ref_store *refs,
 	transaction->ref_store = drefs->refs;
 	res = drefs->refs->be->transaction_prepare(drefs->refs, transaction,
 						   err);
-	trace_printf_key(&trace_refs, "transaction_prepare: %d\n", res);
+	trace_printf_key(&trace_refs, "transaction_prepare: %d \"%s\"\n", res,
+			 err->buf);
 	return res;
 }