e.g. instead of
gbp:error: Failed to apply 'debian/patches/poison+remember_trash'
we now have
gbp:error: Failed to apply 'debian/patches/poison+remember_trash': Failed to commit tree: fatal: invalid date format: 1998/03/21
gbp.log.debug("Applying %s" % patch.path)
try:
apply_and_commit_patch(repo, patch, maintainer, patch.topic)
- except (GbpError, GitRepositoryError):
- gbp.log.err("Failed to apply '%s'" % patch.path)
+ except (GbpError, GitRepositoryError) as e:
+ gbp.log.err("Failed to apply '%s': %s" % (patch.path, e))
repo.set_branch(branch)
repo.delete_branch(pq_branch)
break