From 4cebfc229f62ef517cb4102b31c39cab7b34902d Mon Sep 17 00:00:00 2001 From: Christian Dietrich Date: Tue, 11 Jul 2023 16:19:48 +0200 Subject: [PATCH] Restore old exception handling for Signed-off-by: Christian Dietrich --- .../org/eclipse/xtext/ui/tasks/TaskMarkerContributor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.eclipse.xtext.ui/src/org/eclipse/xtext/ui/tasks/TaskMarkerContributor.java b/org.eclipse.xtext.ui/src/org/eclipse/xtext/ui/tasks/TaskMarkerContributor.java index 0f50f1cc548..7fcf18eb498 100644 --- a/org.eclipse.xtext.ui/src/org/eclipse/xtext/ui/tasks/TaskMarkerContributor.java +++ b/org.eclipse.xtext.ui/src/org/eclipse/xtext/ui/tasks/TaskMarkerContributor.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2014, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2014, 2023 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -65,8 +65,8 @@ protected void createTaskMarkers(IFile file, List tasks, IProgressMonitor public void deleteMarkers(IFile file, IProgressMonitor monitor) { try { file.deleteMarkers(TaskMarkerTypeProvider.XTEXT_TASK_TYPE, true, IResource.DEPTH_ZERO); - } catch (Throwable e) { - throw new RuntimeException(e); + } catch (CoreException e) { + LOG.error(e.getMessage(), e); } } }