Align message in MyEnvironmentPostProcessor code sample

See gh-49282

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
Tran Ngoc Nhan
2026-02-22 17:20:09 +01:00
committed by Stéphane Nicoll
parent 9138ae29d3
commit 4b2efca338
@@ -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) {