Skip to content

Commit

Permalink
Add support for absolute paths in Bloopgun error handling
Browse files Browse the repository at this point in the history
Fix formatting
  • Loading branch information
andrzejressel committed Aug 20, 2023
1 parent b894fb7 commit 3e6352e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bloopgun/src/main/scala/bloop/bloopgun/Bloopgun.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e6352e

Please sign in to comment.