Skip to content

More actionable error message when not authenticated #1060

@janvandervegt-db

Description

@janvandervegt-db

Describe the issue

When running a command that requires authentication, it throws an error that clearly indicates this, but doesn't give any direction on how to resolve this.

Steps to reproduce the behavior

  1. Remove the ~/.databrickscfg file
  2. Run databricks sync ...
  3. See error: Error: cannot load Databricks config file: no configuration file found at /Users/jan.vandervegt/.databrickscfg; please create one first

Expected Behavior

Directions on how to resolve this (by running databricks configure)

Actual Behavior

Got the following error: Error: cannot load Databricks config file: no configuration file found at /Users/jan.vandervegt/.databrickscfg; please create one first

OS and CLI version

CLI version: 0.210.2
OS: MacOS Sonoma 14.2

Is this a regression?

Don't know

Debug Logs

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLICLI related issuesEnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions