jenkins-job-builder/tests/xml_config/exceptions
Daniel Watkins e6d6c276d1 Give an explicit error message when unsupported view type used
When specifying a view type that isn't supported by any modules (such as
"list-view" instead of "list"), this ensures that the user is guided
towards something correct.

This changes the error message in this case from:

AttributeError: 'NoneType' object has no attribute 'name'

to:

jenkins_jobs.errors.JenkinsJobsException: Unrecognized view type: list-view (supported types are: list, pipeline)

Change-Id: I0ee800db1c9c8aeecffcf11f1e86c03ba0590da8
2017-10-06 14:24:48 -04:00
..
failure_formatting_component.yaml Output additional info when exceptions occur 2016-12-08 15:59:12 +00:00
invalid_project.yaml Raise exception on unrecognized project type 2016-09-14 18:02:16 +01:00
invalid_view.yaml Give an explicit error message when unsupported view type used 2017-10-06 14:24:48 -04:00