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)
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user