Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error messages for failed factory imports #344

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

AndrewLister-STFC
Copy link
Contributor

Description of Work

Fixes #321

Checks if file exists, and if file does exist, this assumes a dependency is missing.
Otherwise it prints the old message.

Testing Instructions

  1. Break one of the controllers in a way that will report an ImportError (e.g. try import fitbenchmarking.fake_pkg) and check the error message.
  2. Try to run a controller that does not exist and check the error message

Function: Does the change do what it's supposed to?
Tests: Does it pass? Is there adequate coverage for new code?
Style: Is the coding style consistent? Is anything overly confusing?
Documentation: Is there a suitable change to documentation for this change?

@wathen wathen merged commit 53c907f into master Dec 12, 2019
@wathen wathen deleted the 321-controller_import_error branch December 12, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error handling when software is not installed
2 participants