diff --git a/components/bio-formats-tools/src/loci/formats/tools/ImageInfo.java b/components/bio-formats-tools/src/loci/formats/tools/ImageInfo.java index bab4de127fa..9a2e93f564b 100644 --- a/components/bio-formats-tools/src/loci/formats/tools/ImageInfo.java +++ b/components/bio-formats-tools/src/loci/formats/tools/ImageInfo.java @@ -1146,18 +1146,8 @@ public static void main(String[] args) throws Exception { try { new ImageInfo().testRead(newArgs); } - catch (FormatException e) { - LOGGER.error("Caught FormatException. " + e.getMessage()); - exitCode = 1; - continue; - } - catch (IOException e) { - LOGGER.error("Caught IOException. " + e.getMessage()); - exitCode = 1; - continue; - } - catch (ServiceException e) { - LOGGER.error("Caught ServiceException. " + e.getMessage()); + catch (Exception e) { + LOGGER.error("Caught " + e.getClass().getSimpleName(), e); exitCode = 1; continue; }