Skip to content

Commit

Permalink
refactor: show more error message
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotzh committed Oct 18, 2022
1 parent 19dbb03 commit 6b1d6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/ml/azure-ai-ml/azure/ai/ml/_schema/core/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def _validate(self, value):
path = Path(value)
base_path = Path(self.context[BASE_PATH_CONTEXT_KEY])
if not path.is_absolute():
base_path_err_msg = f" Base path: {base_path}"
path = base_path / path
path.resolve()
base_path_err_msg = f" Resolved absolute path: {path.absolute()}"
if (self._allow_dir and path.is_dir()) or (self._allow_file and path.is_file()):
return super(LocalPathField, self)._validate(value)
except OSError:
Expand Down

0 comments on commit 6b1d6f2

Please sign in to comment.