astronomy-commons / hipscat-import

HiPSCat import - generate HiPSCat-partitioned catalogs
https://hipscat-import.readthedocs.io
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Misleading error message for empty input_file_list #341

Closed hombit closed 1 month ago

hombit commented 2 months ago

I accidentally put empty list into ImportArguments(input_file_list=input_file_list) (wrong glob pattern), and got this exception: ValueError: exactly one of input_path or input_file_list is required. It is a bit misleading, because I didn't provide input_path.