Skip to content

Commit d12ec24

Browse files
committed
Show error message
1 parent e716539 commit d12ec24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/tasks/statistics.rake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ namespace :statistics do
5454
}
5555

5656
notify_idobata.call("#{from.strftime('%Y/%m')}~#{to.strftime('%Y/%m')}のイベント履歴の集計を行いました")
57-
rescue
58-
notify_idobata.call("#{from.strftime('%Y/%m')}~#{to.strftime('%Y/%m')}のイベント履歴の集計でエラーが発生しました")
57+
rescue => e
58+
notify_idobata.call("#{from.strftime('%Y/%m')}~#{to.strftime('%Y/%m')}のイベント履歴の集計でエラーが発生しました\n#{e.message}")
59+
raise e
5960
end
6061
end
6162

0 commit comments

Comments
 (0)