Commit 504a9d8
authored
fix: improve dbc install error on driver not found (#339)
This improves the error message when a user tries to install a driver
that doesn't exist in any registry. The current behavior is,
```sh
$ dbc install sqlserver
Error: could not find driver: driver `sqlserver` not found in driver registry index
```
With this PR, the new behavior is,
```
$ go run ./cmd/dbc install sqlserver
Error: could not find driver: driver `sqlserver` not found in driver registry index; try: `dbc search` to list available drivers
```1 parent 2f0f546 commit 504a9d8
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments