Repository navigation
Commit 4dba9bf
committed
fix(drivers): name a location when the missing-driver error searched nothing
Drivers are deliberately not shipped, so "driver not installed" is a normal
state users hit by design rather than an edge case. `driverSearchRoots()`
returns only directories that exist, so on a machine that has never installed
a driver it returns nothing and the error ended in a bare "Searched 0
locations:" — a colon with nothing after it, naming nowhere to look.
Say plainly that there was nothing to search, and name the `node_modules`
directory the printed install command creates. Resolution behaviour is
unchanged; this is the error text and one branch.
Two tests: the empty case must not render "Searched 0 locations:" and must
name the install directory, and the populated case must still list the roots
it actually searched.1 parent 7b4373f commit 4dba9bf
2 files changed
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
93 | 103 | | |
94 | 104 | | |
95 | 105 | | |
96 | | - | |
97 | | - | |
| 106 | + | |
| 107 | + | |
98 | 108 | | |
99 | 109 | | |
100 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
611 | 636 | | |
612 | 637 | | |
613 | 638 | | |
| |||
0 commit comments