Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Aug 21, 2023
1 parent 9014307 commit 2fd7ac2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ediacara/Assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def __init__(
plan_df = pd.read_csv(assembly_plan, skiprows=1, header=None) # skip header
self.assembly_plan = plan_df[plan_df[0] == self.reference.id]
if len(self.assembly_plan) == 0:
raise ValueError("Error! Assembly plan doesn't contain the reference!")
raise ValueError("Error! Assembly plan doesn't contain the reference! "
"(Have you ensured that the plan contains a header line?)")
if len(self.assembly_plan) > 1:
raise ValueError(
"Error! More than one assembly plan entry matches the reference!"
Expand Down

0 comments on commit 2fd7ac2

Please sign in to comment.