Commit 1ab07b353c7566246641c9434a43d915b4951b1c
1 parent
58eb25a9
Exists in
master
and in
29 other branches
events: be specific on rescue
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/public/events_controller.rb
@@ -7,7 +7,7 @@ class EventsController < PublicController | @@ -7,7 +7,7 @@ class EventsController < PublicController | ||
7 | @events = [] | 7 | @events = [] |
8 | begin | 8 | begin |
9 | @date = build_date params[:year], params[:month], params[:day] | 9 | @date = build_date params[:year], params[:month], params[:day] |
10 | - rescue | 10 | + rescue ArgumentError # invalid date |
11 | return render_not_found | 11 | return render_not_found |
12 | end | 12 | end |
13 | 13 |