Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
fix: more explanation in error message
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Bernstorff <martinbernstorff@gmail.com>
  • Loading branch information
bokajgd and MartinBernstorff authored Nov 18, 2022
1 parent 7b3b994 commit b784991
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ def __init__(self, **data):
if len(invalid_loaders) != 0:
nl = "\n" # New line variable as f-string can't handle backslashes
raise ValueError(
f"""Invalid loader(s) specified.{nl}{nl}Following loaders were not found in the data_loaders registry:"""
f"""Some loader strings could not be resolved in the data_loaders catalogue. Did you make a typo? If you want to add your own loaders to the catalogue, see explosion / catalogue on GitHub for info.
{nl*2}Loaders that could not be resolved:"""
f"""{nl}{nl.join(str(loader) for loader in invalid_loaders)}{nl}{nl}"""
f"""Available loaders:{nl}{nl.join(str(loader) for loader in data_loaders.get_all().keys())}"""
)
Expand Down

0 comments on commit b784991

Please sign in to comment.