Skip to content

Commit

Permalink
refs: print error message in debug output
Browse files Browse the repository at this point in the history
Signed-off-by: Han-Wen Nienhuys <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
hanwen authored and gitster committed Dec 22, 2021
1 parent 99f0d97 commit a6db572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion refs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a6db572

Please sign in to comment.