Skip to content

Commit 9daa04d

Browse files
authored
Fix: improve error message on failed dataset load (axolotl-ai-cloud#2637) [skip ci]
* fix(log): clarify error on dataset loading failed * fix: add path for easy tracking of broken config * fix: improve error message based on pr feedback
1 parent 0d71b0a commit 9daa04d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/axolotl/utils/data/shared.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ def load_dataset_w_config(
281281
**load_ds_kwargs,
282282
)
283283
if not ds:
284-
raise ValueError("unhandled dataset load")
284+
raise ValueError(
285+
"The dataset could not be loaded. This could be due to a misconfigured dataset path "
286+
f"({config_dataset.path}). Try double-check your path / name / data_files. "
287+
"This is not caused by the dataset type."
288+
)
285289

286290
return ds

0 commit comments

Comments
 (0)