Skip to content
This repository was archived by the owner on Jul 13, 2022. It is now read-only.

Commit 2b9a131

Browse files
committed
updated error message for Workspace Directory Validation
1 parent 2ce1f71 commit 2b9a131

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/scala/com/databricks/labs/automl/utils/WorkspaceDirectoryValidation.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ class WorkspaceDirectoryValidation(apiURL: String,
103103
s"in the Workspace. Invalid access for path: $adjustedPath"
104104
)
105105
println(s"\n\n ${e.printStackTrace()}")
106-
throw e
106+
throw new RuntimeException(
107+
s"The directory that you are attempting to log mlflow results to in your Workspace does not have " +
108+
s"the correct permissions for your account to create this directory. Please provide a valid location " +
109+
s"in the Workspace. Invalid access for path: $adjustedPath"
110+
)
107111
}
108112

109113
statusAnswer match {

0 commit comments

Comments
 (0)