From e3f40558a04f7ae34c36a3caf7fa27e30b110d94 Mon Sep 17 00:00:00 2001 From: Keith Pitt Date: Fri, 4 Feb 2011 16:21:50 +0800 Subject: [PATCH] Provide the error message aswell --- app/controllers/admin/images_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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