No exception or error message if user tries to load specific reporter using load_reporter method.

Bug #1367486 reported by Newell Jensen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Released
Medium
Newell Jensen
curtin (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Currently, if a user tries to load a specific reporter and there is an error for some reason, an EmptyReporter is returned. An exception should be raised and this information should also be logged so the user knows what the issue is.

Related branches

Revision history for this message
Blake Rouse (blake-rouse) wrote :

I don't think you should raise an exception if a reporter is not defined. Only raise an exception if the report that is defined fails to load.

Some unit test for this as well would be nice.

Changed in curtin:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Newell Jensen (newell-jensen)
Revision history for this message
Scott Moser (smoser) wrote :

my issue is not that no complaints are made if no config is given. Thats fine.
my issue is that if the user tells you to load a non-existant 'reporter', then you do not complain or fail.

summary: - No exception raised when EmptyReporter is returned from load_reporter
+ No exception or error message if user tries to load specific reporter
+ and it can't. Currently just silently returns an EmptyReporter.
description: updated
summary: No exception or error message if user tries to load specific reporter
- and it can't. Currently just silently returns an EmptyReporter.
+ and using load_reporter method.
summary: No exception or error message if user tries to load specific reporter
- and using load_reporter method.
+ using load_reporter method.
Changed in curtin:
status: Triaged → Fix Committed
Scott Moser (smoser)
no longer affects: curtin (Ubuntu)
Changed in curtin (Ubuntu):
status: New → Fix Released
Changed in curtin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.