Skip to content

Commit 788541f

Browse files
authored
fix: make dbc install tell the user how to start a license (#272)
A user can run into this error state when they try to install a driver without a license. It's pretty likely that they just need to start a trial, so I think the error message should tell them how to do that. With this PR, ``` $ dbc install oracle failed to download driver: dbc-cdn-private.columnar.tech/oracle/v0.4.3/oracle_macos_arm64_v0.4.3.tar.gz: not authorized to access Installing this driver requires a license. Verify you have an active license at https://cloud.columnar.tech/account and run `dbc auth logout` and `dbc auth login` again make your license available. Contact support@columnar.tech if you need assistance. exit status 1 ``` Closes #271
1 parent dd75012 commit 788541f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dbc/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (m baseModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
132132
tea.Println(msgStyle.Render("Did you run `dbc auth login`?")))
133133
case errors.Is(msg, dbc.ErrUnauthorizedColumnar):
134134
cmd = tea.Sequence(tea.Println(errStyle.Render(msg.Error())),
135-
tea.Println(msgStyle.Render("Do you have an active license for this driver? Contact support@columnar.tech for assistance.")))
135+
tea.Println(msgStyle.Render("Installing this driver requires a license. Verify you have an active license at https://cloud.columnar.tech/account and try this command again. Contact support@columnar.tech if you need assistance.")))
136136
default:
137137
cmd = tea.Println(errStyle.Render("Error: " + msg.Error()))
138138
}

0 commit comments

Comments
 (0)