Skip to content

Commit a6db572

Browse files
hanwengitster
authored andcommitted
refs: print error message in debug output
Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 99f0d97 commit a6db572

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

refs/debug.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ static int debug_transaction_prepare(struct ref_store *refs,
4747
transaction->ref_store = drefs->refs;
4848
res = drefs->refs->be->transaction_prepare(drefs->refs, transaction,
4949
err);
50-
trace_printf_key(&trace_refs, "transaction_prepare: %d\n", res);
50+
trace_printf_key(&trace_refs, "transaction_prepare: %d \"%s\"\n", res,
51+
err->buf);
5152
return res;
5253
}
5354

0 commit comments

Comments
 (0)