Skip to content

Commit

Permalink
Make improvements suggested by @lindsay-stevens
Browse files Browse the repository at this point in the history
  • Loading branch information
lognaturel committed Jan 17, 2023
1 parent 816bca0 commit a8dc328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyxform/survey_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ def xml_label_and_hint(self) -> "List[DetachableElement]":
raise PyXFormError(msg)

# big-image must combine with image
if not ("image" in self.media) and "big-image" in self.media:
raise PyXFormError("You must specify an image in order to use big-image.")
if "image" not in self.media and "big-image" in self.media:
raise PyXFormError("To use big-image, you must also specify an image for the survey element named {self.name}.")

return result

Expand Down

0 comments on commit a8dc328

Please sign in to comment.