Skip to content

Commit 00c2834

Browse files
Permissions warning (#983)
## Changes Show better error message for the "spawn UNKNOWN" errors. Helps with the cases like this: #947 ## Tests Manually --------- Co-authored-by: Kartik Gupta <88345179+kartikgupta-db@users.noreply.github.com>
1 parent bad500f commit 00c2834

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/databricks-vscode/src/cli/CliWrapper.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ export class CliWrapper {
123123
if (e.message.includes("cannot parse config file")) {
124124
msg =
125125
"Failed to parse Databricks Config File, please make sure it's in the correct ini format";
126+
} else if (e.message.includes("spawn UNKNOWN")) {
127+
msg = `Failed to parse Databricks Config File using databricks CLI, please make sure you have permissions to execute this binary: "${this.cliPath}"`;
126128
}
127129
}
128130
ctx?.logger?.error(msg, e);

0 commit comments

Comments
 (0)