异常问题

pay_subject
daiao 5 years ago
parent 6a0fce4548
commit e6faf5a065

@ -20,7 +20,7 @@ module ControllerRescueHandler
render_error(ex.record.errors.full_messages.join(','))
end
rescue_from RuntimeError do |ex|
render_error(ex.full_messages.join(','))
render_error(ex.message)
end
end
end
Loading…
Cancel
Save