databricks-cli icon indicating copy to clipboard operation
databricks-cli copied to clipboard

Error Handling

Open m1nkeh opened this issue 5 years ago • 0 comments

Must be missing something obvious here but how do i capture the errors, with a view to handling them during scripting from the Databricks CLI please?

i.e.

databricks workspace export_dir /Users/[email protected]/x-y-z/ ./src/

yields the following that i seem unable to catch or deal with..

Error: b'{"error_code":"RESOURCE_DOES_NOT_EXIST","message":"Path (/Users/[email protected]/x-y-z/) doesn\'t exist."}'

I think this question is not specific to the Databricks CLI, but would be good to know, ty.

m1nkeh avatar Nov 24 '20 09:11 m1nkeh