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