Add error message when running commands on directories
requested to merge franred/buildstream:franred/show-nice-error-when-try-to-load-a-directory into master
Description
[//]: # Shows a more readable error message when a command try to load a directory instead of a .bst file
[//]: # Add new error message and exception
Changes proposed in this merge request:
- Added new exception.
- Catch the exception when opening a directory instead of a file.
- Return an error message to the user which is clearer than the current one.
[//]: # Issue #446 (closed)
This merge request, when approved, will close issue/bug: #446 (closed)