diff --git a/app/controllers/admin/images_controller.rb b/app/controllers/admin/images_controller.rb index de3c740d..8034ff2a 100644 --- a/app/controllers/admin/images_controller.rb +++ b/app/controllers/admin/images_controller.rb @@ -26,7 +26,7 @@ module Admin render :json => image_to_json(a) rescue Exception => e # Rails.logger.info e.backtrace.join("\n") - render :json => { :status => 'error', :backtrace => e.backtrace.join("\n") } + render :json => { :status => 'error', :message => e.message, :backtrace => e.backtrace.join("\n") } end end