打印报错信息
This commit is contained in:
parent
41ddd9b2a2
commit
fbce9fb028
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue