Skip to content

Commit 970f929

Browse files
authored
retry: show exception details on each failed attempt (Bug 1964109) (#42)
1 parent 579d129 commit 970f929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git_hg_sync/retry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def retry(
2323
action_text = f" {action}" if action else ""
2424
if attempt < tries:
2525
logger.error(
26-
f"Failed attempt{action_text} [{attempt}/{tries}]. Retrying..."
26+
f"Failed attempt{action_text} [{attempt}/{tries}] failed with error: {type(exc).__name__}: {exc}. Retrying..."
2727
)
2828
if delay > 0:
2929
time.sleep(delay)

0 commit comments

Comments
 (0)