打印报错信息

This commit is contained in:
huang 2017-03-24 10:59:28 +08:00
parent 41ddd9b2a2
commit fbce9fb028
1 changed files with 1 additions and 1 deletions

View File

@ -46,10 +46,10 @@ class ShixunsController < ApplicationController
format.html{redirect_to myshixun_path(myshixun)}
end
rescue Exception => e
flash[:notice] = l(:notice_shixun_failed_exec)+ ":" + e.message
raise ActiveRecord::Rollback
respond_to do |format|
format.html{
flash[:notice] = l(:notice_shixun_failed_exec)+ ":" + e.message
redirect_to shixun_path(@shixun)}
end
end