-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Provide more clarification in error message #1280
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.
Thanks for the PR, @mitchnegus! 🙏
You'll need to update the error message assertions in tests/test_unsafe.py
to make the test suite pass. Other than that, it looks good. 👍
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.
Please fix the tests. Thanks!
8730af6
to
0ce4906
Compare
Codecov Report
@@ Coverage Diff @@
## master #1280 +/- ##
==========================================
- Coverage 97.01% 96.96% -0.05%
==========================================
Files 48 48
Lines 4053 4053
==========================================
- Hits 3932 3930 -2
- Misses 121 123 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Sorry, I was away from my computer for a week and just got back to checking (didn't notice that this hadn't passed before). All the tests should be fixed now. |
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.
LGTM, @mitchnegus! 👍 Would you mind applying @yajo's requested change still? I'll merge afterwards.
All set—I thought he was just referencing the broken tests and missed the period he had suggested. Should be good to go :) |
Perfect 👌, thanks again! 🙇 |
Ah, it seems @yajo still needs to approve as he requested that one change. |
This provides more information via the error message when a copy/update operation fails due to potentially unsafe actions. It suggests that a user may want to use the
--trust
flag for templates that they trust.