Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cmd/dbc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,11 @@ func formatErr(err error) string {
case errors.Is(err, auth.ErrNoTrialLicense):
return errStyle.Render("Could not download license, trial not started")
case errors.Is(err, dbc.ErrUnauthorized):
return errStyle.Render(err.Error())
return errStyle.Render(err.Error()) + "\n" +
msgStyle.Render("Did you run `dbc auth login`?")
case errors.Is(err, dbc.ErrUnauthorizedColumnar):
Comment on lines +156 to 158

Copilot AI Feb 20, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msgStyle is defined in cmd/dbc/add.go but is now also used by cmd/dbc/main.go. To avoid hidden cross-file coupling (and make styles easier to discover), consider moving msgStyle (and possibly errStyle) into a dedicated shared file (e.g., cmd/dbc/styles.go) in the main package.

Copilot uses AI. Check for mistakes.
return errStyle.Render(err.Error()) + "\n" +
msgStyle.Render("Installing this driver requires a license. Verify you have an active license at https://console.columnar.tech/licenses and try this command again. Contact support@columnar.tech if you believe this is an error.")
msgStyle.Render("Do you have an active license for this driver? Contact support@columnar.tech for assistance.")
Comment thread
zeroshade marked this conversation as resolved.
Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was reverting this improvement to the error message intended here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a good point and my mistake there. The current version of this is better, i'll fix that

default:
return errStyle.Render("Error: " + err.Error())
}
Expand Down
Loading