Skip to content

Commit

Permalink
[RHELC-1269] Add diagnosis for failures in validating yum transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
pr-watson committed Feb 14, 2024
1 parent dd31177 commit 274b488
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion convert2rhel/pkgmanager/handlers/dnf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _process_transaction(self, validate_transaction):
id_="FAILED_TO_VALIDATE_TRANSACTION",
title="Failed to validate dnf transaction.",
description="During the dnf transaction execution an error occured and convert2rhel could no longer process the transaction.",
diagnosis="Transaction processing failed with error %s." % (str(e)),
diagnosis="Transaction processing failed with error %s." % (" ".join(e)),
)

if validate_transaction:
Expand Down
1 change: 1 addition & 0 deletions convert2rhel/pkgmanager/handlers/yum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def _process_transaction(self, validate_transaction):
id_="FAILED_TO_VALIDATE_TRANSACTION",
title="Failed to validate yum transaction.",
description="During the yum transaction execution an error occurred and convert2rhel could no longer process the transaction.",
diagnosis="Transaction processing failed with error %s." % (" ".join(e)),
)

if validate_transaction:
Expand Down

0 comments on commit 274b488

Please sign in to comment.