Skip to content

Commit

Permalink
generic error messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chen_data committed Jun 6, 2024
1 parent e5a0719 commit 37dbce3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions llmfoundry/utils/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37dbce3

Please sign in to comment.