diff --git a/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt b/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt index 07c120e858f..2558df8504a 100644 --- a/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt +++ b/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt @@ -37,7 +37,7 @@ class MyEnvironmentPostProcessor : EnvironmentPostProcessor { } private fun loadYaml(path: Resource): PropertySource<*> { - Assert.isTrue(path.exists()) { "Resource $path does not exist" } + Assert.isTrue(path.exists()) { "'path' [$path] must exist" } return try { loader.load("custom-resource", path)[0] } catch (ex: IOException) {