Provide the error message aswell
This commit is contained in:
parent
da3bd6cef2
commit
e3f40558a0
@ -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', :backtrace => e.backtrace.join("\n") }
|
render :json => { :status => 'error', :message => e.message, :backtrace => e.backtrace.join("\n") }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user