Skip to content

Commit

Permalink
Simplify multiple entities message
Browse files Browse the repository at this point in the history
This was confusing because pyxform is often wrapped in other tools and users don't know what it is.
  • Loading branch information
lognaturel committed Jan 17, 2023
1 parent b17459a commit cefd5a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyxform/entities/entities_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_entity_declaration(workbook_dict: Dict, warnings: List) -> Dict:
return {}
elif len(entities_sheet) > 1:
raise PyXFormError(
"This version of pyxform only supports declaring a single entity per form. Please make sure your entities sheet only declares one entity."
"Currently, you can only declare a single entity per form. Please make sure your entities sheet only declares one entity."
)

entity = entities_sheet[0]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_multiple_dataset_rows_in_entities_sheet__errors(self):
""",
errored=True,
error__contains=[
"This version of pyxform only supports declaring a single entity per form. Please make sure your entities sheet only declares one entity."
"Currently, you can only declare a single entity per form. Please make sure your entities sheet only declares one entity."
],
)

Expand Down

0 comments on commit cefd5a4

Please sign in to comment.