Project

Profile

Help

Refactor #2614

closed

Allow PulpCodedException to propagate during upload to relay error information

Added by daviddavis almost 6 years ago. Updated almost 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

This code here ought to be removed:

https://github.com/pulp/pulp_rpm/blob/54fcfe2e8c7018fc807c72cb12a6eb4f5af1d447/plugins/pulp_rpm/plugins/importers/yum/upload.py#L119-L141

Instead, pulp_rpm can use PulpCodedExceptions which have predefined i18n strings that will automatically get printed to users.

See this PR as an example of what needs to be done:

https://github.com/pulp/pulp_puppet/pull/253


Related issues

Related to RPM Support - Issue #2543: RPM Importer swallows exception when one is raised during uploadCLOSED - CURRENTRELEASEfdobrovoActions

Also available in: Atom PDF