fix exception handling in 3 places#302
Conversation
|
Of course the real point is these slipped through because of the lack of tests that exercise them… |
|
Actually I though about if I could write tests for that, but I don't have a good idea how one could do that, because this is e.g. the exception handling for the writing of data within the |
|
Thanks! |
Well, it depends. Some of the I/O operations are already written using some method call on a file handle. If the @xdg Any interest in any of that? |
|
No, I think that sort of error path testing is more effort than it's worth. |
Hi,
when my disk was full yesterday, I got a
Can't locate object method "_throw" via package "self" (perhaps you forgot to load "self"?) at /usr/share/perl5/Path/Tiny.pm line …error. ☺︎Kind regards,
Martin