From 4b2efca33877e885df906ca3a9891529ba0674f4 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Sat, 21 Feb 2026 13:02:33 +0700 Subject: [PATCH] Align message in MyEnvironmentPostProcessor code sample See gh-49282 Signed-off-by: Tran Ngoc Nhan --- .../MyEnvironmentPostProcessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt index c87ca6c0751..b7009376ec3 100644 --- a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt +++ b/spring-boot-project/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) {