You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This panic is (somewhat) intentional and is a consequence of us using .Do call and define WorkspaceClient() to always return WorkspaceClient and panic if something is wrong. it makes usage if WorkspaceClient cleaner but the error is indeed less readable https://github.com/databricks/cli/blob/main/bundle/bundle.go#L124C36-L133
Describe the issue
databricks bundle deploy --profile TEST
panics when the supplied profile doesn't exist in the~/.databrickscfg
file.Configuration
No special configuration
Steps to reproduce the behavior
databricks bundle deploy --profile TEST
, make sure thatTEST
doesn't exist in the~/.databrickscfg
Expected Behavior
I would expect a proper error message without panics and stacktraces.
Actual Behavior
OS and CLI version
Databricks CLI v0.208.2
, but also current mainmacOS 13.6 (22G120)
Is this a regression?
Not sure, but the panic has been added explicitly here - #102
Debug Logs
The text was updated successfully, but these errors were encountered: