summaryrefslogtreecommitdiff
path: root/app/controllers/assets_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/assets_controller.rb')
-rw-r--r--app/controllers/assets_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/assets_controller.rb b/app/controllers/assets_controller.rb
index 03780c69..801e0968 100644
--- a/app/controllers/assets_controller.rb
+++ b/app/controllers/assets_controller.rb
@@ -94,7 +94,7 @@ class AssetsController < ApplicationController
94 format.xml { head :ok } 94 format.xml { head :ok }
95 end 95 end
96 rescue ActiveRecord::RecordInvalid => e 96 rescue ActiveRecord::RecordInvalid => e
97 flash[:error] = e.message 97 flash[:error] = e.record.errors.full_messages.to_sentence
98 respond_to do |format| 98 respond_to do |format|
99 format.html { redirect_to(asset_path(@asset)) } 99 format.html { redirect_to(asset_path(@asset)) }
100 format.xml { head :forbidden } 100 format.xml { head :forbidden }