Skip to content

Commit

Permalink
bugfix/more-info-and-help-on-corrupt-file (#380)
Browse files Browse the repository at this point in the history
* Add more details to err message on corrupt file

* Remove extra "this" in message
  • Loading branch information
Jackson Maxfield Brown authored Feb 22, 2022
1 parent 21ac821 commit a7e3592
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aicsimageio/aics_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,13 @@ def determine_reader(image: types.ImageLike, **kwargs: Any) -> Type[Reader]:
f"`pip install {installer}`. "
f"See all known format extensions and their "
f"extra install name with "
f"`aicsimageio.formats.FORMAT_IMPLEMENTATIONS`."
f"`aicsimageio.formats.FORMAT_IMPLEMENTATIONS`. "
f"If the extra dependency is already installed this "
f"error may have raised because the file is "
f"corrupt or similar issue. For potentially more "
f"information and to help debug, try loading the file "
f"directly with the desired file format reader "
f"instead of with the AICSImage object."
),
)
else:
Expand Down

0 comments on commit a7e3592

Please sign in to comment.