Fixed the error messages associated with invalid reports

closes #25
This commit is contained in:
2012-04-29 00:47:59 -04:00
parent 5b7d6aa7a7
commit d6f69b6358
2 changed files with 5 additions and 3 deletions

View File

@@ -59,7 +59,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