mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 00:03:43 +01:00
Provide proper error message in case the (default) property file is not available. Ran into this issue in combination with the Gradle daemon.
This commit is contained in:
@@ -370,8 +370,11 @@ public final class Settings {
|
||||
try {
|
||||
in = this.getClass().getClassLoader().getResourceAsStream(propertiesFilePath);
|
||||
props.load(in);
|
||||
} catch (NullPointerException ex) {
|
||||
LOGGER.error("Did not find settings file '{}'.", propertiesFilePath);
|
||||
LOGGER.debug("", ex);
|
||||
} catch (IOException ex) {
|
||||
LOGGER.error("Unable to load default settings.");
|
||||
LOGGER.error("Unable to load settings from '{}'.", propertiesFilePath);
|
||||
LOGGER.debug("", ex);
|
||||
} finally {
|
||||
if (in != null) {
|
||||
|
||||
Reference in New Issue
Block a user