From: Richard Fairhurst Date: Tue, 21 Apr 2009 10:14:28 +0000 (+0000) Subject: Split out subscript to see which one is erroring X-Git-Tag: live~7559 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/f423c13ad46dc90c9ab5a9ea29ed38fdf95851fe?hp=e66af2f0c372a886169a551feea410d7c1f0a468 Split out subscript to see which one is erroring --- diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index b0b3f13cf..72985554c 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -76,7 +76,8 @@ class AmfController < ApplicationController when 'getpresets'; results[index]=AMF.putdata(index,getpresets()) when 'whichways'; results[index]=AMF.putdata(index,whichways(*args)) when 'whichways_deleted'; results[index]=AMF.putdata(index,whichways_deleted(*args)) - when 'getway'; results[index]=AMF.putdata(index,getway(args[0].to_i)) + when 'getway'; r=AMF.putdata(index,getway(args[0].to_i)) + results[index]=r when 'getrelation'; results[index]=AMF.putdata(index,getrelation(args[0].to_i)) when 'getway_old'; results[index]=AMF.putdata(index,getway_old(args[0].to_i,args[1])) when 'getway_history'; results[index]=AMF.putdata(index,getway_history(args[0].to_i))