Include error backtrace in output

This commit is contained in:
Keith Pitt 2011-02-04 15:57:26 +08:00
parent 713d30bdb6
commit da3bd6cef2
1 changed files with 1 additions and 1 deletions

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' }
render :json => { :status => 'error', :backtrace => e.backtrace.join("\n") }
end
end