From 4a2a00b9930076785e9d3cfe648b6d44e1a92553 Mon Sep 17 00:00:00 2001 From: jmoore Date: Thu, 8 Nov 2012 15:20:35 +0000 Subject: [PATCH] Add call to notifyObservers before cancelling (Fix #9852) --- components/blitz/src/ome/formats/importer/ImportLibrary.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/blitz/src/ome/formats/importer/ImportLibrary.java b/components/blitz/src/ome/formats/importer/ImportLibrary.java index 14f94dd1c05..f68d83563b6 100644 --- a/components/blitz/src/ome/formats/importer/ImportLibrary.java +++ b/components/blitz/src/ome/formats/importer/ImportLibrary.java @@ -289,6 +289,9 @@ else if (config.targetClass.get() == "omero.model.Screen") importImage(ic, index, numDone, containers.size()); numDone++; } catch (Throwable t) { + notifyObservers(new ErrorHandler.INTERNAL_EXCEPTION( + ic.getFile().toString(), new RuntimeException(t), + ic.getUsedFiles(), ic.getReader())); if (!config.contOnError.get()) { log.info("Exiting on error"); return false;