Commit 92a8148
committed
refactor: use errors.Is instead of string parsing in isEngineIncompatibleError
Replace fragile string parsing with errors.Is check using the exported
ErrNoDriver sentinel error from the constraint framework. This is more
robust and won't break if error messages change in the framework.
Signed-off-by: Sertac Ozercan <[email protected]>1 parent c9fbc95 commit 92a8148
3 files changed
+14
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
363 | 353 | | |
364 | 354 | | |
365 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
667 | 670 | | |
668 | 671 | | |
669 | 672 | | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
| 673 | + | |
| 674 | + | |
687 | 675 | | |
688 | 676 | | |
689 | 677 | | |
690 | | - | |
691 | | - | |
| 678 | + | |
| 679 | + | |
692 | 680 | | |
693 | 681 | | |
694 | 682 | | |
695 | | - | |
696 | | - | |
| 683 | + | |
| 684 | + | |
697 | 685 | | |
698 | 686 | | |
699 | 687 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
0 commit comments