diff --git a/app/controllers/exceptionhandler_controller.rb b/app/controllers/exceptionhandler_controller.rb index 8ac47e5..e8ef167 100755 --- a/app/controllers/exceptionhandler_controller.rb +++ b/app/controllers/exceptionhandler_controller.rb @@ -63,7 +63,8 @@ class ExceptionhandlerController < ApplicationController issue.save flash.now[:notice] = "New report filed: ##{issue.id}" else - flash.now[:error] = issue.errors.full_messages + flash.now[:error] = "There was an error with filing this report" + @output = issue.errors.full_messages end #TODO generate link to issue diff --git a/app/views/exceptionhandler/index.html.erb b/app/views/exceptionhandler/index.html.erb index 508e25b..b8bc6f3 100755 --- a/app/views/exceptionhandler/index.html.erb +++ b/app/views/exceptionhandler/index.html.erb @@ -1,5 +1,8 @@