From 3e1610f9592f9acf17f4bfbdc60b2fa3ad7b0f60 Mon Sep 17 00:00:00 2001 From: adpi2 Date: Mon, 25 Mar 2024 12:59:14 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Tomasz Godzik --- .../internal/metals/debug/ClientConfigurationAdapter.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/metals/src/main/scala/scala/meta/internal/metals/debug/ClientConfigurationAdapter.scala b/metals/src/main/scala/scala/meta/internal/metals/debug/ClientConfigurationAdapter.scala index caa77b4b87e..0de9eee3330 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/debug/ClientConfigurationAdapter.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/debug/ClientConfigurationAdapter.scala @@ -12,6 +12,7 @@ import org.eclipse.lsp4j.debug.InitializeRequestArgumentsPathFormat import org.eclipse.lsp4j.debug.SourceBreakpoint import com.google.gson.JsonObject import com.google.gson.JsonPrimitive +import scala.util.control.NonFatal /** * The [[ClientConfigurationAdapter]] uses the client configuration coming from the initialize request @@ -63,7 +64,8 @@ private[debug] final case class ClientConfigurationAdapter( } } } catch { - case _: IllegalStateException => () + case NonFatal(t) => + scribe.error("unexpected error when adapting stack trace response", t) } } result