Provide the error message aswell

This commit is contained in:
Keith Pitt 2011-02-04 16:21:50 +08:00
parent da3bd6cef2
commit e3f40558a0

View File

@ -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