Skip to content

Commit 18d8627

Browse files
authored
Merge pull request #181 from coderdojo-japan/show-error-message
Show error message
2 parents 8a22f0b + d12ec24 commit 18d8627

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)