changed classpath to 3.5.0
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / view / datasource / handler / UpdateDataSourceHandler.java
index 9521b5345640461fd994727301b913de944b44ea..efcd9d5702ef1c6b145d6143fd0c3caa4f9cf855 100644 (file)
@@ -79,10 +79,12 @@ public class UpdateDataSourceHandler extends AbstractDataSourceHandler {
                                                        }
                                                });
                                                status = Status.OK_STATUS;
+                                       }else{
+                                               throw new RuntimeException("An error occurred during the update.");
                                        }
                                }catch(Exception e){
                                        status = new Status(IStatus.ERROR, TaxeditorStorePlugin.PLUGIN_ID, e.getMessage(), e);
-                                       MessagingUtils.messageDialog("Could not run updater", getClass(), status.getMessage());
+                                       MessagingUtils.errorDialog("Could not complete updater", updater, status.getMessage(), status.getPlugin(), e, true);
                                }
                                }