Skip to content
Open
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/spark_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ def safe_spark_home_for_purge(spark_home: Path = SPARK_HOME) -> Path:
repo_root = REPO_ROOT.resolve()
root = Path(resolved.anchor).resolve()
if resolved == root or resolved == home or resolved == repo_root:
raise SystemExit(f"Refusing to purge unsafe Spark home path: {resolved}")
raise SystemExit("Refusing to purge unsafe Spark home path. The configured Spark home resolves to a system-critical directory.")
return resolved


Expand Down