Skip to content

Commit

Permalink
clarify items order error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ivagljiva committed Sep 10, 2024
1 parent 80ed0ba commit 61302af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/anvi-export-items-order
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def main(args):
items_order_of_interest = item_orders_dict[item_order]

if not items_order_of_interest:
raise ConfigError("The item order '%s' is not one of the item orders in the database. This what you "
"have in there: '%s'." % (order_name, ', '.join(item_order_names)))
raise ConfigError(f"The item order '{order_name}' is not one of the item orders in the database. Here "
f"is a comma-separated list of what you have in there (please note that you can, but do not need "
f"to include the distance/clustering types after the ':' character in each name): "
f"{', '.join(item_order_names)}")

order_data_type_newick = items_order_of_interest['type'] == 'newick'
run.info("Database", db_path)
Expand Down

0 comments on commit 61302af

Please sign in to comment.