From a7e3592e8a30c2c9107579db93fa6978e7b9c3a9 Mon Sep 17 00:00:00 2001 From: Jackson Maxfield Brown Date: Tue, 22 Feb 2022 11:40:34 -0800 Subject: [PATCH] bugfix/more-info-and-help-on-corrupt-file (#380) * Add more details to err message on corrupt file * Remove extra "this" in message --- aicsimageio/aics_image.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aicsimageio/aics_image.py b/aicsimageio/aics_image.py index 7a28dd30e..cc765a8ed 100644 --- a/aicsimageio/aics_image.py +++ b/aicsimageio/aics_image.py @@ -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: