Skip to content

Commit e646e09

Browse files
committed
error handling - small fix
1 parent 0d8e0dd commit e646e09

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ mvn clean install
1111
mvn cargo:run -f um-webapp/pom.xml
1212
```
1313

14+
1415
# Persistence
1516
By default, the project uses [the H2 in-memory DB](http://www.h2database.com/html/main.html) and - `persistence-h2.properties`.
1617

‎um-webapp/src/main/java/org/baeldung/um/persistence/setup/MyApplicationContextInitializer.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void initialize(final ConfigurableApplicationContext applicationContext)
4040
environment.setActiveProfiles(activeProfiles.split(","));
4141
} catch (final IOException ioEx) {
4242
if (envTarget != null) {
43-
logger.warn("Didn't find env-{}.properties in classpath so not loading it in the AppContextInitialized", envTarget);
43+
logger.warn("Didn't find env-" + envTarget + ".properties in classpath so not loading it in the AppContextInitialized", ioEx);
4444
}
4545
}
4646

0 commit comments

Comments
 (0)