diff --git a/lib/jekyll/utils.rb b/lib/jekyll/utils.rb index fe8eb79c..dc190297 100644 --- a/lib/jekyll/utils.rb +++ b/lib/jekyll/utils.rb @@ -89,10 +89,10 @@ module Jekyll # # Returns the parsed date if successful, throws a FatalException # if not - def parse_date(input, msg = "Invalid date: could not be parsed.") + def parse_date(input, msg = "Input could not be parsed.") Time.parse(input) rescue ArgumentError - raise Errors::FatalException.new(msg) + raise Errors::FatalException.new("Invalid date '#{input}': " + msg) end end