pahanix & IT

yet another passionate programmer

1 note &

Let Hoptoad know about your failed rake tasks

If you use Hoptoad and run rake tasks from cron you won’t receive any error messages until you call Hoptoad notifier explicitly.

The correct way to do that is to call: HoptoadNotifier.notify(e)

task :taskname do
  begin
    # ...
  rescue Exception => e
    HoptoadNotifier.notify(e)
    raise # to show error in console
  end
end

Filed under hoptoad rake task

  1. pahanix posted this