Rescue the entire method instead of just a `begin` block
This commit is contained in:
parent
0884a52fea
commit
810a29c719
|
@ -15,7 +15,6 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns nothing
|
# Returns nothing
|
||||||
def self.process_site(site)
|
def self.process_site(site)
|
||||||
begin
|
|
||||||
site.process
|
site.process
|
||||||
rescue Jekyll::FatalException => e
|
rescue Jekyll::FatalException => e
|
||||||
puts
|
puts
|
||||||
|
@ -26,4 +25,3 @@ module Jekyll
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in New Issue