databricks-cli
databricks-cli copied to clipboard
Error Handling
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.