Conversation
rokonec
left a comment
There was a problem hiding this comment.
Apart from that recommended change, which is not related to this commit, it is OK.
4ae4d28 to
db672fa
Compare
|
This is strictly better than the previous version, approved. Note that this method is easy to confuse with how warnings are actually converted, which is handled in Issues arise from a task relying on Log.HasLoggedError under this case:
Result: This method returns null, which implies that there are no warnings as errors. No task will see that a warning it logged was treated as an error. While this isn't great, it's the same functionality as what came before it. The workaround for this would be to manually select warnings to be errors. I'll file a bug on it. |
Fixes potential access problem.