add details to newrelic trace, fix 401 errors for xml

This commit is contained in:
r888888888
2015-07-09 18:15:48 -07:00
parent ac8bcdb22f
commit 76718c7012
3 changed files with 7 additions and 3 deletions

View File

@@ -58,6 +58,10 @@ protected
render :text => "authentication failed", :status => 401
end
fmt.xml do
render :xml => {:sucess => false, :reason => "authentication failed"}.to_xml(:root => "response"), :status => 401
end
fmt.json do
render :json => {:success => false, :reason => "authentication failed"}.to_json, :status => 401
end