Commit 4256834
committed
assert, assert/cmp: un-deprecate assert.ErrorType for now
Commit 043b579 deprecated these
functions, marking assert.ErrorIs as a replacement. Unfortunately,
assert.ErrorIs is not a drop-in replacement for various situations,
or requires quite some additional boilerplating to be used.
This patch reverts the deprecation for now, but keeps recommendations
in place to consider ErrorIs for situations that allow it.
Signed-off-by: Sebastiaan van Stijn <[email protected]>1 parent 9aa7888 commit 4256834
2 files changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
| |||
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | | - | |
310 | | - | |
311 | 310 | | |
312 | 311 | | |
313 | 312 | | |
| |||
0 commit comments