Improve auth token error formatting for easier copy-paste#4602
Open
jamesbroadhead wants to merge 1 commit intodatabricks:mainfrom
Open
Improve auth token error formatting for easier copy-paste#4602jamesbroadhead wants to merge 1 commit intodatabricks:mainfrom
jamesbroadhead wants to merge 1 commit intodatabricks:mainfrom
Conversation
When auth fails, the suggested `databricks auth login` command was printed on the same line as the error and config details, making it hard to copy. Split the message across multiple lines so the command is visually distinct and easy to select. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
andrewnester
approved these changes
Feb 26, 2026
|
|
||
| ### CLI | ||
| * Add `completion install`, `uninstall`, and `status` subcommands ([#4581](https://github.com/databricks/cli/pull/4581)) | ||
| * Improve `auth token` error formatting for easier copy-paste of login commands |
Contributor
There was a problem hiding this comment.
Please include a link to the PR here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Format the
auth tokenerror message across multiple lines so thesuggested
databricks auth logincommand is on its own line and easyto copy-paste.
Before:
After:
Why
When auth fails, the suggested login command was printed on the same line as the error and config details, making it difficult to select and copy. This follows the same multi-line pattern already used by
RewriteAuthErrorfor invalid refresh token errors.Tests
go test ./cmd/auth/ -run TestToken_loadToken)go test ./acceptance/... -run TestAccept/cmd/auth/token)