Repository navigation
(Even) better merger errors - #2226
Conversation
|
Thanks, good catches! |
|
I realize it's probably too late for a debate on principles, but is there a special reason why there's an enum and error classes instead of subclassing the base |
|
Maybe. I’ll take a look at doing it that way. |
|
Done, but now the code is sufficiently different, you're going to have to review it again. :-) |
|
Hm, this scuppers CFF merge errors, they follow their own logic. Maybe the merge errors with a cause should be subclasses of a |
|
@madig good catch about CFF-related VarLibMergeErrors (I'd expected the tests to fail?) also 👍 on using |
|
The tests don't fail, but the |
|
Yes, moving to kwargs was a good move; it allowed me to split up the reason from the traceback, which makes everything a lot tidier. |
|
Small nit: if your class has a docstring, you don't need a |
Fixes #2224 (as well as some other silent errors) and adds a test.