Skip to content

Commit

Permalink
show Error Notification if operation changes to Error status
Browse files Browse the repository at this point in the history
  • Loading branch information
patschuh committed May 6, 2019
1 parent db71672 commit 2517228
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/at/esque/kafka/CrossClusterController.java
Expand Up @@ -178,7 +178,10 @@ private void startOperation(UUID operationId) {
count.incrementAndGet();
}
} catch (Exception e) {
Platform.runLater(() -> operation.setStatus("Error"));
Platform.runLater(() -> {
operation.setStatus("Error");
trayHandler.showErrorNotification("Operation stopped with an error!", e.getMessage());
});
}
});
}
Expand Down

0 comments on commit 2517228

Please sign in to comment.