Commit b7ef61e
committed
Remove "unconditional" messaging from Issue kind
This PR changes the default message for an issue of kind `.unconditional` from
`"Unconditionally failed"` to `"Issue recorded"`.
Although the failure is unconditional at the point it is recorded, the code that
recorded the issue may not be unconditionally executing, so we shouldn't
describe it as unconditional (we just don't know!)
For example, given the following code:
```swift
if case .empty = potatoSack.contents {
Issue.record("No potatoes left.")
}
```
We would previously log:
> Unconditionally failed: No potatoes left.
Now we'll log:
> Issue recorded: No potatoes left.
Resolves #574..unconditional.1 parent c314907 commit b7ef61e
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
| |||
457 | 460 | | |
458 | 461 | | |
459 | 462 | | |
460 | | - | |
| 463 | + | |
461 | 464 | | |
462 | 465 | | |
463 | 466 | | |
| |||
0 commit comments