Skip to content

Commit 8e43db2

Browse files
committed
Merge pull request #159 from danielfone/patch-1
Better exception handling
2 parents c8038ab + 7b88b02 commit 8e43db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ task :post do
4949
slug = title.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
5050
begin
5151
date = (ENV['date'] ? Time.parse(ENV['date']) : Time.now).strftime('%Y-%m-%d')
52-
rescue Exception => e
52+
rescue => e
5353
puts "Error - date format must be YYYY-MM-DD, please check you typed it correctly!"
5454
exit -1
5555
end

0 commit comments

Comments
 (0)