diff mbox series

[1/2] refs: print error message in debug output

Message ID 177d84f8563341c688db8a5b14c043277cfc1106.1640090038.git.gitgitgadget@gmail.com (mailing list archive)
State Superseded
Headers show
Series tweaks to refs/debug.c | expand

Commit Message

Han-Wen Nienhuys Dec. 21, 2021, 12:33 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 756d07c7247..cf6ad36fbb0 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;
 }