Skip to content

Commit 5b1df80

Browse files
committed
Revert change that is not in rake 0.9.2
1 parent 5842081 commit 5b1df80

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lib/rake/application.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,14 @@ def load_rakefile
8585

8686
# Run the top level tasks of a Rake application.
8787
def top_level
88-
if options.show_tasks
89-
display_tasks_and_comments
90-
elsif options.show_prereqs
91-
display_prerequisites
92-
else
93-
top_level_tasks.each { |task_name| invoke_task(task_name) }
88+
standard_exception_handling do
89+
if options.show_tasks
90+
display_tasks_and_comments
91+
elsif options.show_prereqs
92+
display_prerequisites
93+
else
94+
top_level_tasks.each { |task_name| invoke_task(task_name) }
95+
end
9496
end
9597
end
9698

0 commit comments

Comments
 (0)