We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe5919 commit 6a4faedCopy full SHA for 6a4faed
src/databricks/sql/backend/sea/backend.py
@@ -410,8 +410,10 @@ def _check_command_not_in_failed_or_closed_state(
410
)
411
if state == CommandState.FAILED:
412
error = status.error
413
+ error_code = error.error_code if error else "UNKNOWN_ERROR_CODE"
414
+ error_message = error.message if error else "UNKNOWN_ERROR_MESSAGE"
415
raise ServerOperationError(
- "Command failed: {} {}".format(error.error_code, error.message),
416
+ "Command failed: {} {}".format(error_code, error_message),
417
{
418
"operation-id": command_id,
419
},
0 commit comments