Commit dc7ac6b
fix: restore hints when unauthorized (#321)
## Summary
Restores helpful hints that were lost in the error handling refactor
(#279):
- Added hint for `ErrUnauthorized`: "Did you run `dbc auth login`?"
- Restored simpler hint for `ErrUnauthorizedColumnar` with original
wording from #255
## Context
These hints were originally added in #255 to help users troubleshoot
authorization issues when installing private drivers. During the error
handling refactor in #279, these hints were either removed or changed to
more verbose messages.
## Changes
- `cmd/dbc/main.go`: Updated `formatErr()` function to include both
helpful hints
Fixes #315
---------
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: zeroshade <555095+zeroshade@users.noreply.github.com>1 parent 74d43a2 commit dc7ac6b
2 files changed
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
27 | 69 | | |
28 | 70 | | |
29 | 71 | | |
| |||
0 commit comments