]> git.openstreetmap.org Git - rails.git/commitdiff
Handle exceptions rendering flash messages
authorTom Hughes <tom@compton.nu>
Tue, 23 Nov 2021 16:55:06 +0000 (16:55 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 23 Nov 2021 16:55:06 +0000 (16:55 +0000)
app/helpers/application_helper.rb

index c9f165d528af8f7d32bd6ee94e03035e02d3a2e8..bb09f3a49953bd66ec26fcb8734befb800c767e1 100644 (file)
@@ -71,5 +71,7 @@ module ApplicationHelper
     else
       flash
     end
+  rescue StandardError
+    flash.inspect if Rails.env.development?
   end
 end