Include error backtrace in output
This commit is contained in:
parent
713d30bdb6
commit
da3bd6cef2
@ -26,7 +26,7 @@ module Admin
|
|||||||
render :json => image_to_json(a)
|
render :json => image_to_json(a)
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
# Rails.logger.info e.backtrace.join("\n")
|
# Rails.logger.info e.backtrace.join("\n")
|
||||||
render :json => { :status => 'error' }
|
render :json => { :status => 'error', :backtrace => e.backtrace.join("\n") }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user