diff --git a/spring-boot-starters/spring-boot-starter-shell/src/main/resources/commands/crash/login.groovy b/spring-boot-starters/spring-boot-starter-shell/src/main/resources/commands/crash/login.groovy index 9bada963a0..7563045ee5 100644 --- a/spring-boot-starters/spring-boot-starter-shell/src/main/resources/commands/crash/login.groovy +++ b/spring-boot-starters/spring-boot-starter-shell/src/main/resources/commands/crash/login.groovy @@ -7,11 +7,12 @@ welcome = { -> def hostName; try { hostName = java.net.InetAddress.getLocalHost().getHostName(); - } catch (java.net.UnknownHostException ignore) { + } + catch (java.net.UnknownHostException ignore) { hostName = "localhost"; } - // Get Spring Boot version from context + // Get Spring Boot version from context def version = crash.context.attributes.get("spring.boot.version") return """\