Skip to content

Commit 7a6d248

Browse files
author
Dave Syer
committed
Widen net for errors in vcap initializer
1 parent 5dd35aa commit 7a6d248

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot/src/main/java/org/springframework/boot/context/initializer/VcapApplicationContextInitializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private Properties getPropertiesFromApplication(Environment environment) {
160160
properties.putAll(map);
161161
}
162162
}
163-
catch (IllegalArgumentException e) {
163+
catch (Exception e) {
164164
logger.error("Could not parse VCAP_APPLICATION", e);
165165
}
166166
return properties;
@@ -187,7 +187,7 @@ private Properties getPropertiesFromServices(Environment environment) {
187187
}
188188
}
189189
}
190-
catch (IllegalArgumentException e) {
190+
catch (Exception e) {
191191
logger.error("Could not parse VCAP_APPLICATION", e);
192192
}
193193
return properties;

0 commit comments

Comments
 (0)