Skip to content

Commit

Permalink
Updated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
James Wood authored and James Wood committed Nov 6, 2024
1 parent 3f137d1 commit f7e9954
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion podaac/hitide_backfill_tool/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,15 @@ def verify_inputs(args, granule_options, message_writer, backfiller):

if granule_options['dmrpp_processing'] != "off":
if message_writer is None:
raise Exception("Either disable dmrpp processing or specify --cumulus-configurations path")
error_msg = "Dmrpp processing requires "
missing = []
if args.cumulus_configurations is None:
missing.append("cumulus configurations directory")
if args.default_message_config is None:
missing.append("default message config file")

error_msg += " and ".join(missing) + " to be specified" if missing else ""
raise Exception(error_msg)

files = message_writer.collection_config.get('files', [])
has_dmrpp_regex = False
Expand Down

0 comments on commit f7e9954

Please sign in to comment.