diff --git a/src/main/java/com/typesafe/config/Config.java b/src/main/java/com/typesafe/config/Config.java index 5576a1de..f025e9d2 100644 --- a/src/main/java/com/typesafe/config/Config.java +++ b/src/main/java/com/typesafe/config/Config.java @@ -236,8 +236,8 @@ public final class Config { return (long) (Double.parseDouble(numberString) * nanosInUnit); } } catch (NumberFormatException e) { - throw new ConfigException.BadValue(originForException, pathForException, - "Could not parse duration number '" + throw new ConfigException.BadValue(originForException, + pathForException, "Could not parse duration number '" + numberString + "'"); } }