File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
tensorflow_datasets/core/download Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,18 @@ def _get_path(dataset_name):
91
91
path = _checksum_paths ().get (dataset_name , None )
92
92
if path :
93
93
return path
94
+ filename = os .path .basename (path )
94
95
msg = (
95
- 'No checksums file could be find for dataset {}. Please create one in '
96
- 'one of:\n {}'
96
+ 'No checksums file `{}` could be find for dataset {}. Please '
97
+ 'create one in one of:\n {}'
97
98
'If you are developing your own dataset outsite tfds, you can register '
98
99
'your own checksums_dir with `tfds.download.add_checksums_dir('
99
100
'checksum_dir)` or pass it to the download_and_prepare script with '
100
101
'`--checksum_dir=`'
101
- ).format (dataset_name , '' .join (['* {}\n ' .format (c ) for c in _CHECKSUM_DIRS ]))
102
+ ).format (
103
+ filename ,
104
+ dataset_name ,
105
+ '' .join (['* {}\n ' .format (c ) for c in _CHECKSUM_DIRS ]))
102
106
raise AssertionError (msg )
103
107
104
108
You can’t perform that action at this time.
0 commit comments