Patching better 412 error messages from mis-commit on old api06 branch.
[rails.git] / app / controllers / user_preference_controller.rb
index b07f4ecc5d0e287051522099a1dfb96a3ce9fac4..59573047acc3591e22621f1fb041b99abe3f95d9 100644 (file)
@@ -52,7 +52,7 @@ class UserPreferenceController < ApplicationController
 
   # update the entire set of preferences
   def update
-    do
+    begin
       p = XML::Parser.string(request.raw_post)
     rescue LibXML::XML::Error, ArgumentError => ex
       raise OSM::APIBadXMLError.new("preferences", xml, ex.message)