-
Notifications
You must be signed in to change notification settings - Fork 448
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
sources: introduce SnapcraftSourceNotFoundError #2604
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Can you please make sure that at least a test for the exception is added to tests.unit.test_errors ?
Will do. |
Codecov Report
@@ Coverage Diff @@
## master #2604 +/- ##
=========================================
Coverage ? 89.06%
=========================================
Files ? 206
Lines ? 14052
Branches ? 2123
=========================================
Hits ? 12516
Misses ? 1085
Partials ? 451
Continue to review full report at Codecov.
|
Added tests and simplified some crufty logic I noticed while in there... |
Fixes SNAPCRAFT-VV |
Fixed formatting issue. |
Many of the errors seen by users indicate source not found. - introduce SnapcraftSourceNotFoundError with helpful error message - chain to FileNotFoundError raised by shutil.copy2(), a common cause of the captured FileNotFoundError exceptions - add tests to validate - simplify some crufty logic while i'm in here Fixes SNAPCRAFT-VV Fixes SNAPCRAFT-VN Fixes SNAPCRAFT-VV Fixes SNAPCRAFT-TJ Fixes SNAPCRAFT-T9 Fixes SNAPCRAFT-TE Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
Many of the errors seen by users indicate source not found.
message
cause of the captured FileNotFoundError exceptions
Signed-off-by: Chris Patterson chris.patterson@canonical.com
./runtests.sh static
?./runtests.sh tests/unit
?