From d12ec2458055153161c8f59ea7167c56d023951b Mon Sep 17 00:00:00 2001 From: nalabjp Date: Sat, 4 Nov 2017 03:17:24 +0900 Subject: [PATCH] Show error message --- lib/tasks/statistics.rake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tasks/statistics.rake b/lib/tasks/statistics.rake index 25684448e..91920218a 100644 --- a/lib/tasks/statistics.rake +++ b/lib/tasks/statistics.rake @@ -54,8 +54,9 @@ namespace :statistics do } notify_idobata.call("#{from.strftime('%Y/%m')}~#{to.strftime('%Y/%m')}のイベント履歴の集計を行いました") - rescue - notify_idobata.call("#{from.strftime('%Y/%m')}~#{to.strftime('%Y/%m')}のイベント履歴の集計でエラーが発生しました") + rescue => e + notify_idobata.call("#{from.strftime('%Y/%m')}~#{to.strftime('%Y/%m')}のイベント履歴の集計でエラーが発生しました\n#{e.message}") + raise e end end