From 3e6352e5b1f4eeb0e8e69bd2c353480357cc95ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=8BAndrzej=20Ressel?= Date: Sun, 20 Aug 2023 18:54:31 +0200 Subject: [PATCH] Add support for absolute paths in Bloopgun error handling Fix formatting --- bloopgun/src/main/scala/bloop/bloopgun/Bloopgun.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bloopgun/src/main/scala/bloop/bloopgun/Bloopgun.scala b/bloopgun/src/main/scala/bloop/bloopgun/Bloopgun.scala index 9569be8624..599408b897 100644 --- a/bloopgun/src/main/scala/bloop/bloopgun/Bloopgun.scala +++ b/bloopgun/src/main/scala/bloop/bloopgun/Bloopgun.scala @@ -513,7 +513,9 @@ class BloopgunCli( val errorCode = "error=2" javaExec match { case Some(java) - if javaErrorMessage.pattern.matcher(e.getMessage()).find() && e.getMessage.contains(errorCode) => + if javaErrorMessage.pattern.matcher(e.getMessage()).find() && e.getMessage.contains( + errorCode + ) => logger.info(s"Java executable was not available on PATH, retrying with $java") val (cmd, usedExtraJvmOpts) = cmdWithArgs(found, extraJvmOpts, List(java), globalSettings)