Skip to content

Commit

Permalink
improve error messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanCarloMachado committed Nov 13, 2024
1 parent 06bb079 commit 65cfbdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rocket/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def launch(
if not os.path.exists(f"{home}/.databrickscfg"):
raise Exception("Databricks cli not configured. Run `databricks configure --token`.")

if os.getenv("DATABRICKS_TOKEN") is None:
raise Exception("DATABRICKS_TOKEN must be set for db-rocket to work")
if os.getenv("DATABRICKS_TOKEN"):
print("Note: DATABRICKS_TOKEN is set, it could override the token in ~/.databrickscfg and cause errors.")

base_dbfs_access_error_message = ("Is your databricks token is set and valid? "
"Try to generate a new token and update existing one with "
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/poetry-test/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-test"
version = "0.1.0"
version = "0.1.1"
description = ""
authors = ["Steven Mi <[email protected]>"]

Expand Down

0 comments on commit 65cfbdc

Please sign in to comment.