Skip to content

Commit

Permalink
Prevent double trailing dots in ConfigException message
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Lövgren committed Jan 15, 2018
1 parent 7d021bf commit 39d7a6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class ConfigException private (val errors: ConfigErrors)
extends Throwable({
val errorMessages =
errors.toVector
.map(error => s" - ${error.message}.")
.map(error => s" - ${error.message.stripSuffix(".")}.")
.mkString("\n", "\n", "\n")

s"configuration loading failed with the following errors.\n$errorMessages"
Expand Down

0 comments on commit 39d7a6f

Please sign in to comment.