From 37dbce3574061538342831970ae8bc794356f866 Mon Sep 17 00:00:00 2001 From: v-chen_data Date: Thu, 6 Jun 2024 14:39:20 -0700 Subject: [PATCH] generic error messaging --- llmfoundry/utils/config_utils.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/llmfoundry/utils/config_utils.py b/llmfoundry/utils/config_utils.py index fced277954..2a6d44b2af 100644 --- a/llmfoundry/utils/config_utils.py +++ b/llmfoundry/utils/config_utils.py @@ -706,13 +706,12 @@ def _verify_uc_path(path: str) -> bool: '`UCVolumeDatasetSource`, but your `UCVolumeDatasetSource` might be invalid.', ) return False - except Exception: + except Exception as e: log.warning( - 'Cannot verify the path of `UCVolumeDatasetSource` due to a connection failure ' + \ - 'with Databricks workspace. Please run `mlflow.login()` to log in to Databricks. ' + \ - 'This does not block creating `UCVolumeDatasetSource`, but your ' + \ - '`UCVolumeDatasetSource` might be invalid.') - return False + f'Cannot verify the path of `UCVolumeDatasetSource` due to an error. ' + f'Error details: {str(e)}. This does not block creating `UCVolumeDatasetSource`, ' + f'but your `UCVolumeDatasetSource` might be invalid.', + ) try: w.files.get_metadata(path)